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

Angular does not detect changes with events from the `<editor>` component

Open franklbt opened this issue 1 year ago • 4 comments

What is the current behavior?

  • Add the <editor> component to a parent component that should also display a template based on a state
  • Use one of the provided component event (for example (onBlur)) -update the state of the parent compoent (in the onBlur callback in this case)
  • The updated state is not reflected on the view (since the callback is not executed in the angular zone)

What is the expected behavior?

The state is executed in angular zone

  • TinyMCE: 6.6.2
  • TinyMCE-Angular 7.0.0
  • Browser / OS : all
  • Did this work in previous versions of TinyMCE or TinyMCE-Angular? I don't know

Note: I managed to use the onBlur event by wrapping the callback inside a NgZone.run call, but this behaviour doesn't seems normal and is apparently not documented anywhere.

franklbt avatar Aug 28 '23 20:08 franklbt

Ref: INT-3225

TinyITAdmin avatar Aug 28 '23 20:08 TinyITAdmin

Could you please create a code sandbox or similar that replicates this issue and then share that with us? You can fork our code sandbox if you'd like.

danoaky-tiny avatar Jan 10 '24 23:01 danoaky-tiny

Any updates on this?

JustDoItSascha avatar Feb 28 '24 11:02 JustDoItSascha

@franklbt I've made a code sandbox from the description of your issue https://codesandbox.io/p/devbox/int-3225-g4kkgf. Although, I can't seem to replicate. Please feel free to fork that code sandbox to give us a better idea of what the problem is.

danoaky-tiny avatar Feb 28 '24 22:02 danoaky-tiny

I'm closing this issue as it has become stale. Feel free to comment here or create a new issue if the problem persists, but please first try replicating with the newest release (v8).

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