8
0
فهرست منبع

Aligned Batch#remove with new DetachOperation API.

Oskar Wróbel 8 سال پیش
والد
کامیت
bb5355f5a8
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      packages/ckeditor5-engine/src/model/batch.js

+ 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 );