Explorar o código

Fix post-fixer that fixes extra paragraphs name.

Maciej Gołaszewski %!s(int64=6) %!d(string=hai) anos
pai
achega
d32e73af10
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/ckeditor5-heading/src/title.js

+ 2 - 2
packages/ckeditor5-heading/src/title.js

@@ -99,7 +99,7 @@ export default class Title extends Plugin {
 		model.document.registerPostFixer( writer => this._fixBodyElement( writer ) );
 
 		// Prevent from adding extra at the end of the document.
-		model.document.registerPostFixer( writer => this._removesExtraParagraph( writer ) );
+		model.document.registerPostFixer( writer => this._fixExtraParagraph( writer ) );
 
 		// Attach `Title` and `Body` placeholders to the empty title and/or content.
 		this._attachPlaceholders();
@@ -293,7 +293,7 @@ export default class Title extends Plugin {
 	 * @param {module:engine/model/writer~Writer} writer
 	 * @returns {Boolean}
 	 */
-	_removesExtraParagraph( writer ) {
+	_fixExtraParagraph( writer ) {
 		const root = this.editor.model.document.getRoot();
 		const placeholder = this._bodyPlaceholder;