|
|
@@ -139,7 +139,7 @@ export default class MoveOperation extends Operation {
|
|
|
throw new CKEditorError(
|
|
|
'operation-move-range-into-itself: Trying to move a range of nodes to the inside of that range.'
|
|
|
);
|
|
|
- } else {
|
|
|
+ } else if ( this.sourcePosition.root == this.targetPosition.root ) {
|
|
|
if ( compareArrays( this.sourcePosition.getParentPath(), this.targetPosition.getParentPath() ) == 'PREFIX' ) {
|
|
|
let i = this.sourcePosition.path.length - 1;
|
|
|
|