|
|
@@ -18,6 +18,21 @@ import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
|
|
|
* and fires different change event.
|
|
|
*/
|
|
|
export default class ReinsertOperation extends MoveOperation {
|
|
|
+ /**
|
|
|
+ * @inheritDocs
|
|
|
+ */
|
|
|
+ constructor( sourcePosition, howMany, targetPosition, baseVersion ) {
|
|
|
+ super( sourcePosition, howMany, targetPosition, baseVersion );
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Reinsert operation is always executed on attached items.
|
|
|
+ *
|
|
|
+ * @readonly
|
|
|
+ * @member {Boolean}
|
|
|
+ */
|
|
|
+ this.isDocumentOperation = true;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Position where nodes will be re-inserted.
|
|
|
*
|
|
|
@@ -41,15 +56,6 @@ export default class ReinsertOperation extends MoveOperation {
|
|
|
return 'reinsert';
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Reinsert operation is always executed on attached items.
|
|
|
- *
|
|
|
- * @member {Boolean}
|
|
|
- */
|
|
|
- get isDocumentOperation() {
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* See {@link module:engine/model/operation/operation~Operation#getReversed `Operation#getReversed()`}.
|
|
|
*
|