Parcourir la source

Do not update DocumentSelecton after non-document operation.

Oskar Wróbel il y a 6 ans
Parent
commit
556b19e4fd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
 			}