Explorar o código

Changed: Call view post-fixers once before rendering.

Maciej Gołaszewski %!s(int64=7) %!d(string=hai) anos
pai
achega
54757533f1
Modificáronse 1 ficheiros con 4 adicións e 5 borrados
  1. 4 5
      packages/ckeditor5-engine/src/view/view.js

+ 4 - 5
packages/ckeditor5-engine/src/view/view.js

@@ -361,12 +361,11 @@ export default class View {
 		callback( this._writer );
 		this._ongoingChange = false;
 
-		// Execute all document post-fixers after the change.
-		this._postFixersInProgress = true;
-		this.document._callPostFixers( this._writer );
-		this._postFixersInProgress = false;
-
 		if ( !this._renderingDisabled ) {
+			// Execute all document post-fixers after the change.
+			this._postFixersInProgress = true;
+			this.document._callPostFixers( this._writer );
+			this._postFixersInProgress = false;
 			this.fire( 'render' );
 		}
 	}