소스 검색

Internal (autoformat): Add a clarifying comment.

Marek Lewandowski 5 년 전
부모
커밋
2cb3f6aed5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/ckeditor5-autoformat/src/autoformat.js

+ 1 - 0
packages/ckeditor5-autoformat/src/autoformat.js

@@ -128,6 +128,7 @@ export default class Autoformat extends Plugin {
 					const pattern = new RegExp( `^(#{${ level }})\\s` );
 
 					blockAutoformatEditing( this.editor, this, pattern, () => {
+						// Should only be active if command is enabled and heading style associated with pattern is inactive.
 						if ( !command.isEnabled || command.value === modelName ) {
 							return false;
 						}