8
0
Просмотр исходного кода

Minor wording corrections and clarifications.

Piotrek Koszuliński 9 лет назад
Родитель
Сommit
838c076a43
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/ckeditor5-heading/src/headingsengine.js

+ 3 - 2
packages/ckeditor5-heading/src/headingsengine.js

@@ -57,11 +57,12 @@ export default class HeadingsEngine extends Feature {
 			}
 			}
 		}
 		}
 
 
-		// Register command.
+		// Register the headings command.
 		const command = new HeadingsCommand( editor, formats );
 		const command = new HeadingsCommand( editor, formats );
 		editor.commands.set( 'headings', command );
 		editor.commands.set( 'headings', command );
 
 
-		// If Enter Command is added to the editor, alter it's behavior.
+		// If the enter command is added to the editor, alter its behavior.
+		// Enter at the end of a heading element should create a paragraph.
 		const enterCommand = editor.commands.get( 'enter' );
 		const enterCommand = editor.commands.get( 'enter' );
 
 
 		if ( enterCommand ) {
 		if ( enterCommand ) {