codedance / jquery.AreYouSure

A light-weight jQuery "dirty forms" Plugin - it monitors html forms and alerts users to unsaved changes if they attempt to close the browser or navigate away from the page. (Are you sure?)
508 stars 145 forks source link

Implementing for GravityForms with CKEditor (in Wordpress) #120

Open scottmcculloch opened 7 years ago

scottmcculloch commented 7 years ago

Has anyone implemented this for GravityForms with the CKEditor add-on?

I've got it working if I don't use the CKEditor or the Rich Text Editor (which I think is TinyMCE) for the textarea fields, but I need the editor enabled and can't get this working with that.

I've seen the examples in #62 #65 and #17, but haven't been able to get anything working... and it's very possible I'm just not implementing correctly.

scottmcculloch commented 7 years ago

I found a fork that has the CKEditor fix implemented... and it appears to work just fine. https://github.com/tyama/jquery.AreYouSure/commit/d08a6797db95890661bc5ab835b01e59b24b2055