8
0
Эх сурвалжийг харах

Aligned Batch#remove with new DetachOperation API.

Oskar Wróbel 8 жил өмнө
parent
commit
bb5355f5a8

+ 1 - 3
packages/ckeditor5-engine/src/model/batch.js

@@ -339,9 +339,7 @@ export default class Batch {
 
 				operation = new RemoveOperation( position, howMany, gyPosition, this.document.version );
 			} else {
-				const range = Range.createFromPositionAndShift( position, howMany );
-
-				operation = new DetachOperation( range, this.document.version );
+				operation = new DetachOperation( position, howMany, this.document.version );
 			}
 
 			delta.addOperation( operation );