Ver código fonte

Docs: Clarified how to make editor read-only. [skip ci]

Piotrek Koszuliński 7 anos atrás
pai
commit
9fc668f236
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      packages/ckeditor5-core/src/editor/editor.js

+ 5 - 1
packages/ckeditor5-core/src/editor/editor.js

@@ -128,7 +128,11 @@ export default class Editor {
 		 * Defines whether this editor is in read-only mode.
 		 *
 		 * In read-only mode the editor {@link #commands commands} are disabled so it is not possible
-		 * to modify document by using them.
+		 * to modify the document by using them. Also, the editable element(s) become non-editable.
+		 *
+		 * In order to make the editor read-only, you can set this value directly:
+		 *
+		 *		editor.isReadOnly = true;
 		 *
 		 * @observable
 		 * @member {Boolean} #isReadOnly