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

Commit

Permalink
Merge pull request #23 from ckeditor/t/22
Browse files Browse the repository at this point in the history
Other: Updated command names to match the latest API of the Heading feature. Closes #22.
  • Loading branch information
szymonkups authored Mar 13, 2017
2 parents 486566f + 2de7201 commit 10b5561
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/autoformat.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ export default class Autoformat extends Plugin {
const { batch, match } = context;
const headingLevel = match[ 1 ].length;

this.editor.execute( 'heading', {
batch,
id: `heading${ headingLevel }`
} );
this.editor.execute( `heading${ headingLevel }`, { batch } );
} );
}

Expand Down

0 comments on commit 10b5561

Please sign in to comment.