Selaa lähdekoodia

Refresh selection after change block. Just in case.

Oskar Wróbel 6 vuotta sitten
vanhempi
sitoutus
ed9a11989a
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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();
 		}