8
0
Pārlūkot izejas kodu

Internal: Changed disabling id.

Szymon Cofalik 6 gadi atpakaļ
vecāks
revīzija
e824cdf63c
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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' );
 			}
 		} );
 	}