|
|
@@ -812,6 +812,7 @@ export default class Model {
|
|
|
* Fixes all empty roots.
|
|
|
*
|
|
|
* @protected
|
|
|
+ * @param {module:engine/model/writer~Writer} writer The model writer.
|
|
|
* @returns {Boolean} `true` if any change has been applied, `false` otherwise.
|
|
|
*/
|
|
|
_autoparagraphEmptyRoots( writer ) {
|
|
|
@@ -825,6 +826,9 @@ export default class Model {
|
|
|
if ( schema.checkChild( root, 'paragraph' ) ) {
|
|
|
writer.insertElement( 'paragraph', root );
|
|
|
|
|
|
+ // Other roots will get fixed in the next post-fixer round. Those will be triggered
|
|
|
+ // in the same batch no matter if this method was triggered by the post-fixing or not
|
|
|
+ // (the above insertElement call will trigger the post-fixers).
|
|
|
return true;
|
|
|
}
|
|
|
}
|