|
@@ -69,13 +69,6 @@ export default class EditingController {
|
|
|
const selection = doc.selection;
|
|
const selection = doc.selection;
|
|
|
const markers = this.model.markers;
|
|
const markers = this.model.markers;
|
|
|
|
|
|
|
|
- // When taking over an editing view, disable the rendering until the first
|
|
|
|
|
- // changes were made to the model. This allows a free manipulation of the view root
|
|
|
|
|
- // attributes without any risk of breaking anything, for instance, the initial content
|
|
|
|
|
- // of the DOM root element. If the rendering was allowed, any change of attributes would
|
|
|
|
|
- // trigger rendering and synchronize the DOM root with a (still) empty model.
|
|
|
|
|
- this.view._renderingDisabled = true;
|
|
|
|
|
-
|
|
|
|
|
// When plugins listen on model changes (on selection change, post fixers, etc) and change the view as a result of
|
|
// 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
|
|
// 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.
|
|
// is converted). We disable rendering for the length of the outermost model change() block to prevent that.
|