Dirty form checker doesn't see changes in rich editor fields

Description

Preside's checks to see if a form has unsaved changes before navigating away from a page do not see changes made within a CKEditor rich text field.

This is probably because the underlying textarea field is only updated when the form is submitted.

2 ways to solve this:
1. Update the underlying text area when the editor loses focus
2. Hook in to the CKEditor API which should be expose whether the editor instance has changes.

If (2) is possible, this would be the preferred route.

Environment

None

Activity

Show:
Seb Duggan
April 30, 2018, 8:10 AM

Thank you - great stuff!

Nelson Chuah
April 30, 2018, 4:22 AM

Hi,

PR created for this:
https://github.com/pixl8/Preside-CMS/pull/477

Thank you
Nelson

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

Seb Duggan

Accepted

Yes