We had been using the WYSIWYG module, but decided to evaluate CKEditor module's implementation of the CKEditor WYSIWYG. We had been using TinyMCE, previously, but there seems to be a lot of momentum behind the CKEditor community at the moment.

In anycase, this summer we helped to upgrade the http://drupal.org/project/node_edit_protection module and did this because we were finding it far too easy to navigate away from a document we were editing. Simply by hitting the backspace outside of the textarea allowed the browser to go back to a previous screen and lost all of the data that we were editing at the time. It's the same thing if you accidentally click on a link from the edit screen.

We're still using this, but CKEditor uses an iFrame and we're not able to as easily identify when the content in the textarea box has changed. Is there a way to do this natively within CKEditor?

It's going to be important to figure this type of thing out as we move to a release of D8 where there may well be a WYSIWYG in core.

Comments

mkesicki’s picture

Status: Active » Postponed

Please check CKEditor API function like http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#check.... Maybe this is what you are looking for.

mgifford’s picture

That looks possible. This is another related issue #1001476: Dirty Forms does not recognize changes in CKEditor textarea

dczepierga’s picture

Status: Postponed » Fixed

Hi @mgifford,
It will be hard to add support for this in our module - in "Node Edit Protection" it's much easier so I've add patches and review them - everything seems to works fine.

Node Edit Protection - Add support for CKEditor module:
Drupal 7 - #1358004: [D7] Add support for CKEditor library
Drupal 6 - #1358024: [D6] Add support for CKEditor module

Greetings

mgifford’s picture

We'll test this too. Thanks for adding the patch!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.