|
|
@@ -19,6 +19,21 @@ import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
|
|
|
*/
|
|
|
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.
|
|
|
*
|
|
|
* @type {module:engine/model/position~Position}
|
|
|
@@ -42,15 +57,6 @@ export default class ReinsertOperation extends MoveOperation {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 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()`}.
|
|
|
*
|
|
|
* @returns {module:engine/model/operation/removeoperation~RemoveOperation}
|