Преглед изворни кода

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` );
 					const pattern = new RegExp( `^(#{${ level }})\\s` );
 
 
 					blockAutoformatEditing( this.editor, this, pattern, () => {
 					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 ) {
 						if ( !command.isEnabled || command.value === modelName ) {
 							return false;
 							return false;
 						}
 						}