rootattributedelta.js 852 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /**
  6. * @module engine/model/delta/rootattributedelta
  7. */
  8. import Delta from './delta';
  9. import DeltaFactory from './deltafactory';
  10. /**
  11. * To provide specific OT behavior and better collisions solving, methods to change attributes
  12. * ({@link module:engine/model/batch~Batch#setAttribute} and {@link module:engine/model/batch~Batch#removeAttribute})
  13. * use `RootAttributeDelta` class which inherits from the `Delta` class and may
  14. * overwrite some methods.
  15. *
  16. * @extends module:engine/model/delta/delta~Delta
  17. */
  18. export default class RootAttributeDelta extends Delta {
  19. /**
  20. * @inheritDoc
  21. */
  22. static get className() {
  23. return 'engine.model.delta.RootAttributeDelta';
  24. }
  25. }
  26. DeltaFactory.register( RootAttributeDelta );