Explorar o código

Do not update DocumentSelecton after non-document operation.

Oskar Wróbel %!s(int64=6) %!d(string=hai) anos
pai
achega
556b19e4fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 			}