浏览代码

Fixes after the rebase.

Piotr Jasiun 10 年之前
父节点
当前提交
38fe7efd7d
共有 1 个文件被更改,包括 4 次插入8 次删除
  1. 4 8
      packages/ckeditor5-utils/src/document/operation/insertoperation.js

+ 4 - 8
packages/ckeditor5-utils/src/document/operation/insertoperation.js

@@ -55,14 +55,6 @@ CKEDITOR.define( [
 			return new InsertOperation( this.position, this.nodeList, this.baseVersion );
 		}
 
-		_execute() {
-			this.position.parent.insertChildren( this.position.offset, this.nodeList );
-
-			return {
-				range: new Range( this.position, Position.createFromPositionAndShift( this.position, this.nodeList.length ) )
-			};
-		}
-
 		getReversed() {
 			// Because of circular dependencies we need to re-require remove operation here.
 			const RemoveOperation = CKEDITOR.require( 'document/operation/removeoperation' );
@@ -72,6 +64,10 @@ CKEDITOR.define( [
 
 		_execute() {
 			this.position.parent.insertChildren( this.position.offset, this.nodeList );
+
+			return {
+				range: new Range( this.position, Position.createFromPositionAndShift( this.position, this.nodeList.length ) )
+			};
 		}
 	}