Преглед на файлове

Fix post-fixer that fixes extra paragraphs name.

Maciej Gołaszewski преди 6 години
родител
ревизия
d32e73af10
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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;