소스 검색

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

Aleksander Nowodzinski 8 년 전
부모
커밋
8a25867366
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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 } );
 		} );
 	}