From 196fb98ae86c45652e650b226ad8ed293481c1ac Mon Sep 17 00:00:00 2001 From: Aleksander Nowodzinski Date: Tue, 7 Mar 2017 10:34:59 +0100 Subject: [PATCH] Updated command names to match the latest API of the Heading feature. --- src/autoformat.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/autoformat.js b/src/autoformat.js index aa020df..20a8355 100644 --- a/src/autoformat.js +++ b/src/autoformat.js @@ -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 } ); } ); }