Răsfoiți Sursa

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

Aleksander Nowodzinski 8 ani în urmă
părinte
comite
8a25867366
1 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  1. 1 4
      packages/ckeditor5-autoformat/src/autoformat.js

+ 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 } );
 		} );
 	}