You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Watchdog crashes when ckeditor component is initialized with disabled property and watchdog property together.
Below code is fired when disabled property of the component is read:
public setDisabledState( isDisabled: boolean ): void {
// If already initialized.
if ( this.editorInstance ) {
this.editorInstance.isReadOnly = isDisabled;
}
// Store the state anyway to use it once the editor is created.
this.initialIsDisabled = isDisabled;
}
this.editorInstance is a getter:
public get editorInstance(): CKEditor5.Editor | null {
if ( this.editorWatchdog ) {
return this.editorWatchdog.editor;
}
if ( this.watchdog ) {
return this.watchdog.getItem( this.id );
}
return null;
}
Unfortunately, at the time setDisabledState is called, the editor is not yet added to the watchdog, so this.watchdog.getItem throws an error.
The text was updated successfully, but these errors were encountered:
Watchdog crashes when ckeditor component is initialized with
disabled
property andwatchdog
property together.Below code is fired when
disabled
property of the component is read:this.editorInstance
is a getter:Unfortunately, at the time
setDisabledState
is called, the editor is not yet added to the watchdog, sothis.watchdog.getItem
throws an error.The text was updated successfully, but these errors were encountered: