Skip to content

Commit e134a6d

Browse files
TINY-11907: apply codereview comment
1 parent 3a76143 commit e134a6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tinymce-angular-component/src/main/ts/editor/editor.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ export class EditorComponent extends Events implements AfterViewInit, ControlVal
8383
if (this._editor && this._editor.initialized) {
8484
if (DisabledUtils.isDisabledOptionSupported()) {
8585
this._editor.options.set('disabled', val ?? false);
86-
return;
86+
} else {
87+
setMode(this._editor, val ? 'readonly' : 'design');
8788
}
88-
setMode(this._editor, val ? 'readonly' : 'design');
8989
}
9090
}
9191

0 commit comments

Comments
 (0)