Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

On setup, sets form as pristine #348

Open
cdhowie opened this issue Dec 4, 2017 · 0 comments
Open

On setup, sets form as pristine #348

cdhowie opened this issue Dec 4, 2017 · 0 comments

Comments

@cdhowie
Copy link

cdhowie commented Dec 4, 2017

This line sets the form containing a tinymce directive as pristine when the editor is configured. I'm not sure why this is necessary, but it makes it unnecessarily convoluted to dynamically create new editors. Any new editor that is created will mark the whole form as pristine, even if a totally different component (not even a tinymce editor) was dirty at the time.

This can be worked around by nesting the editor in a <div ng-form>, giving it its own form controller that it can mess with as it pleases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant