tinymce-angular icon indicating copy to clipboard operation
tinymce-angular copied to clipboard

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

Open madmurl0c opened this issue 3 years ago • 3 comments

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.

madmurl0c avatar Aug 02 '22 11:08 madmurl0c

Ref: INT-2974

exalate-issue-sync[bot] avatar Aug 02 '22 11:08 exalate-issue-sync[bot]

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>

danobri avatar Nov 03 '22 17:11 danobri

When will this be merged?

JustDoItSascha avatar Feb 28 '24 11:02 JustDoItSascha

Fixed in latest release (v8), closing.

danoaky-tiny avatar Apr 30 '24 06:04 danoaky-tiny