Kaynağa Gözat

Updated command names to match the latest API of the Heading feature.

Aleksander Nowodzinski 8 yıl önce
ebeveyn
işleme
8a25867366

+ 1 - 4
packages/ckeditor5-autoformat/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 } );
 		} );
 	}