Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fix post-fixer that fixes extra paragraphs name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Sep 5, 2019
1 parent 0df59cd commit d12b0cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/title.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit d12b0cd

Please sign in to comment.