Opened 11 years ago
Closed 11 years ago
#10421 closed Bug (invalid)
calling editor.destroy( true ) does not undo editing in DIV
Reported by: | Henrik Helmø Larsen | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
According to the documentation a call to:
editor.destroy( true );
should undo all editing. I am using CKEditor as an inline editor - and when the user presses the ESC-key I would like to undo the changes made.
This does not work with version 4.1.1 in Chrome 26.0.1410.65 on Win7 64bit
Are you sure we talk about same documentation - http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-destroy? There is nothing about undoing changes but about updating replaced element (textarea replaced by iframed editor).
Changes can be reverted with undo only and destroying editor is not the way to do it.