Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TinyMce form is dirty even though it is not touched #120

Open
sbillard opened this issue Apr 3, 2017 · 0 comments
Open

TinyMce form is dirty even though it is not touched #120

sbillard opened this issue Apr 3, 2017 · 0 comments

Comments

@sbillard
Copy link

sbillard commented Apr 3, 2017

I am having a problem with a tinyMCE textarea that is perplexing.

dirtyforms v2.0.0, tinyMCE v4.5.2

The form is "dirty" even after a page reload and no venturing near the textarea. The problem seems to be content related as I use the same page to render different content from the database and in most instances everything works as expected.

There is a fairly large amount of content for the page where the problem occurs. It is also possible that the HTML in the content might be the source of the issue since I have created a much larger lorem content with no formatting and do not see the issue.

I have a "reset" button on the page which causes a form reset. If I wait long enough, the reset button will "work" and the page will reload without a "dirty" warning.

I have been trying a form reset on a window.settimeout function delay after the window is loaded. So far the delay needs to be 5-6 seconds for the reset to clear whatever is making the form dirty. (I don't think this is a viable permanent solution!)

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

No branches or pull requests

1 participant