Oskar Wróbel před 8 roky
rodič
revize
e8f0a71a2d

+ 3 - 3
packages/ckeditor5-core/src/command.js

@@ -20,7 +20,7 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix';
  * Instances of registered commands can be retrieved from {@link module:core/editor/editor~Editor#commands}.
  * The easiest way to execute a command is through {@link module:core/editor/editor~Editor#execute}.
  *
- * By default commands are disabled when editor is in {@link module:core/editor/editor~Editor#isReadOnly read-only} mode.
+ * By default commands are disabled when the editor is in {@link module:core/editor/editor~Editor#isReadOnly read-only} mode.
  *
  * @mixes module:utils/observablemixin~ObservableMixin
  */
@@ -76,10 +76,10 @@ export default class Command {
 			}
 		}, { priority: 'high' } );
 
-		// By default commands are disabled when editor switches to read-only mode.
+		// By default commands are disabled when the editor is in read-only mode.
 		this.listenTo( editor, 'change:isReadOnly', ( evt, name, value ) => {
 			if ( value ) {
-				// See ticket about overriding observable properties
+				// See a ticket about overriding observable properties
 				// https://github.com/ckeditor/ckeditor5-utils/issues/171.
 				this.on( 'change:isEnabled', forceDisable, { priority: 'lowest' } );
 				this.isEnabled = false;

+ 2 - 2
packages/ckeditor5-core/src/editor/editor.js

@@ -90,9 +90,9 @@ export default class Editor {
 		this.data = new DataController( this.document );
 
 		/**
-		 * Defines whether editor is in read-only mode.
+		 * Defines whether this editor is in read-only mode.
 		 *
-		 * In read-only mode editor {@link module:core/command Commands} are disabled and is not possible
+		 * In read-only mode the editor {@link module:core/command Commands} are disabled and is not possible
 		 * to modify document using it.
 		 *
 		 * @observable

+ 1 - 1
packages/ckeditor5-core/tests/manual/readonly.md

@@ -1,6 +1,6 @@
 ## Read-only
 
-1. Change something in the editor.
+1. Change a content in the editor.
 2. Turn on read-only mode by clicking the button above the editor.
 3. Check if undo/redo (by shortcuts) is disabled.
 4. Check if modifying content is blocked (input, delete, paste) for collapsed and non-collapsed selection.