Browse Source

Fixes after the rebase.

Piotr Jasiun 10 years ago
parent
commit
38fe7efd7d

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