|
|
@@ -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#readOnly read-only} mode.
|
|
|
+ * By default commands are disabled when editor is in {@link module:core/editor/editor~Editor#isReadOnly read-only} mode.
|
|
|
*
|
|
|
* @mixes module:utils/observablemixin~ObservableMixin
|
|
|
*/
|
|
|
@@ -77,7 +77,7 @@ export default class Command {
|
|
|
}, { priority: 'high' } );
|
|
|
|
|
|
// By default commands are disabled when editor switches to read-only mode.
|
|
|
- this.listenTo( editor, 'change:readOnly', ( evt, name, value ) => {
|
|
|
+ this.listenTo( editor, 'change:isReadOnly', ( evt, name, value ) => {
|
|
|
if ( value ) {
|
|
|
this.on( 'change:isEnabled', forceDisable, { priority: 'high' } );
|
|
|
this.isEnabled = false;
|