Преглед изворни кода

Refresh selection after change block. Just in case.

Oskar Wróbel пре 6 година
родитељ
комит
ed9a11989a
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      packages/ckeditor5-engine/src/model/document.js

+ 4 - 0
packages/ckeditor5-engine/src/model/document.js

@@ -316,6 +316,10 @@ export default class Document {
 				this.fire( 'change', writer.batch );
 			}
 
+			// Theoretically, it is not necessary to refresh selection after change event because
+			// post-fixers are the last who should change the model, but just in case...
+			this.selection.refresh();
+
 			this.differ.reset();
 		}