Selaa lähdekoodia

Internal: Changed disabling id.

Szymon Cofalik 6 vuotta sitten
vanhempi
commit
e824cdf63c
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      packages/ckeditor5-core/src/command.js

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

@@ -120,9 +120,9 @@ export default class Command {
 		// By default commands are disabled when the editor is in read-only mode.
 		this.listenTo( editor, 'change:isReadOnly', ( evt, name, value ) => {
 			if ( value ) {
-				this.forceDisabled( 'Command:readOnlyMode' );
+				this.forceDisabled( 'readOnlyMode' );
 			} else {
-				this.clearForceDisabled( 'Command:readOnlyMode' );
+				this.clearForceDisabled( 'readOnlyMode' );
 			}
 		} );
 	}