浏览代码

Do not update DocumentSelecton after non-document operation.

Oskar Wróbel 6 年之前
父节点
当前提交
556b19e4fd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-engine/src/model/documentselection.js

+ 1 - 1
packages/ckeditor5-engine/src/model/documentselection.js

@@ -627,7 +627,7 @@ class LiveSelection extends Selection {
 		this.listenTo( this._model, 'applyOperation', ( evt, args ) => {
 			const operation = args[ 0 ];
 
-			if ( operation.type === 'marker' || operation.type === 'rename' || operation.type === 'noop' ) {
+			if ( !operation.isDocumentOperation || operation.type == 'marker' || operation.type == 'rename' || operation.type == 'noop' ) {
 				return;
 			}