瀏覽代碼

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