tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
320 stars 93 forks source link

fix: set disabled state properly #274

Closed arturovt closed 2 years ago

arturovt commented 2 years ago

Currently, it's not possible to provide the initial disabled value from the form control options, e.g.:

<editor [formControl]="control" [init]="{ ... }"></editor>

control = new FormControl({ value: '', disabled: true });

We already have the disabled property which will:

jscasca commented 2 years ago

I think we are missing a setMode on an init_instance_callback to ensure the state is always the latest change.