Selaa lähdekoodia

Changed: `MergeDelta` and `SplitDelta` should create sticky move operations on reverse.

Szymon Cofalik 8 vuotta sitten
vanhempi
commit
67206cd791

+ 0 - 13
packages/ckeditor5-engine/src/model/delta/mergedelta.js

@@ -41,19 +41,6 @@ export default class MergeDelta extends Delta {
 	}
 
 	/**
-	 * @inheritDoc
-	 */
-	getReversed() {
-		const delta = super.getReversed();
-
-		if ( delta.operations.length > 0 ) {
-			delta.operations[ 1 ].isSticky = false;
-		}
-
-		return delta;
-	}
-
-	/**
 	 * Operation in this delta that removes the node after merge position (which will be empty at that point) or
 	 * `null` if the delta has no operations. Note, that after {@link module:engine/model/delta/transform~transform transformation}
 	 * this might be an instance of {@link module:engine/model/operation/moveoperation~MoveOperation} instead of

+ 0 - 13
packages/ckeditor5-engine/src/model/delta/splitdelta.js

@@ -40,19 +40,6 @@ export default class SplitDelta extends Delta {
 	}
 
 	/**
-	 * @inheritDoc
-	 */
-	getReversed() {
-		const delta = super.getReversed();
-
-		if ( delta.operations.length > 0 ) {
-			delta.operations[ 0 ].isSticky = true;
-		}
-
-		return delta;
-	}
-
-	/**
 	 * Operation in the delta that adds to model an element into which split nodes will be moved, or `null` if
 	 * there are no operations in the delta.
 	 *