tinymce-angular
tinymce-angular copied to clipboard
Form state doesn't update correctly when using ChangeDetectionStrategy.OnPush
What is the current behaviour When editing text in tinymce the form state doesn't update correctly.
How to reproduce
- Open https://stackblitz.com/edit/angular-13-rmvnj2
- Type in tinymce (state is not updated)
- Type in regular input (state updates correctly)
Expected behaviuor The form state should update automatically like it does with the regular input element.
Ref: INT-2974
Any updates on this? I got tripped up by the same issue. For anyone interested, to avoid removing ChangeDetectionStrategy.OnPush, wiring up the onSelectionChange event seems to force change detection.
<editor formControlName="comment" (onSelectionChange)="undefined"></editor>
When will this be merged?
Fixed in latest release (v8), closing.