8
0

weakinsertdelta.js 768 B

12345678910111213141516171819202122232425262728
  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/weakinsertdelta
  7. */
  8. import InsertDelta from './insertdelta';
  9. import DeltaFactory from './deltafactory';
  10. /**
  11. * To provide specific OT behavior and better collisions solving, the {@link module:engine/model/batch~Batch#insert} method
  12. * uses the `WeakInsertDelta` class which inherits from the `Delta` class and may overwrite some methods.
  13. *
  14. * @extends module:engine/model/delta/delta~Delta
  15. */
  16. export default class WeakInsertDelta extends InsertDelta {
  17. /**
  18. * @inheritDoc
  19. */
  20. static get className() {
  21. return 'engine.model.delta.WeakInsertDelta';
  22. }
  23. }
  24. DeltaFactory.register( WeakInsertDelta );