tinymce / tinymce-angular

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

Form state doesn't update correctly when using ChangeDetectionStrategy.OnPush #311

Closed madmurl0c closed 2 months ago

madmurl0c commented 1 year ago

What is the current behaviour When editing text in tinymce the form state doesn't update correctly.

How to reproduce

  1. Open https://stackblitz.com/edit/angular-13-rmvnj2
  2. Type in tinymce (state is not updated)
  3. Type in regular input (state updates correctly)

Expected behaviuor The form state should update automatically like it does with the regular input element.

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-2974

danobri commented 1 year ago

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>
JustDoItSascha commented 4 months ago

When will this be merged?

danoaky-tiny commented 2 months ago

Fixed in latest release (v8), closing.