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

INT-2974: Support OnPush change detection

Open danoaky-tiny opened this issue 1 year ago • 0 comments

Description of changes: As described in #311, when a parent component was using OnPush change detection, changes made in the editor component weren't picked up.

This is fixed by changing the editor's change detection strategy to use OnPush itself, and marking when changes need to be checked manually. Changes are marked to be checked on the editor's blur event and on any of the modelEvents. This covers both for checking when "touched" and when made "dirty".

I've also added a Storybook component to show this functionality.

Note: This PR depends on changes in #367, so merge that first.

danoaky-tiny avatar Jan 12 '24 04:01 danoaky-tiny