Selaa lähdekoodia

Reverted the default value of View#_renderingDisabled and activated the flag in the EditingController.

Aleksander Nowodzinski 7 vuotta sitten
vanhempi
sitoutus
866b298e8a

+ 2 - 0
packages/ckeditor5-engine/src/controller/editingcontroller.js

@@ -69,6 +69,8 @@ export default class EditingController {
 		const selection = doc.selection;
 		const markers = this.model.markers;
 
+		this.view._renderingDisabled = true;
+
 		// When plugins listen on model changes (on selection change, post fixers, etc) and change the view as a result of
 		// model's change, they might trigger view rendering before the conversion is completed (e.g. before the selection
 		// is converted). We disable rendering for the length of the outermost model change() block to prevent that.

+ 1 - 1
packages/ckeditor5-engine/src/view/view.js

@@ -135,7 +135,7 @@ export default class View {
 		 * @protected
 		 * @member {Boolean} module:engine/view/view~View#_renderingDisabled
 		 */
-		this._renderingDisabled = true;
+		this._renderingDisabled = false;
 
 		/**
 		 * DowncastWriter instance used in {@link #change change method) callbacks.