Recently one of our editors found an issue where a piece of content is out when 'undo' is clicked after switching from WYSIWYG to SOURCE and back to WYSIWYG.
The full reproduction path is as follows:
start with a clean CKEditor instance (text-selection and codemirror plugins enabled)
enter a line of text
switch to
switch back to
enter a second line of text and make a couple of characters bold
press undo
Expected: the last action would be undone, i.e. making a few characters bold.
Observed: all changes that were made after switching back to are lost.
I think this issue is caused because the function 'createBookmark' is called twice when switching from
I found a workaround which is to simply call editor.undoManager.unlock() in the last line of createBookmark, but that might not play well with previous fixes done in this area?
Hi!
Recently one of our editors found an issue where a piece of content is out when 'undo' is clicked after switching from WYSIWYG to SOURCE and back to WYSIWYG.
The full reproduction path is as follows:
Expected: the last action would be undone, i.e. making a few characters bold. Observed: all changes that were made after switching back to are lost.
I think this issue is caused because the function 'createBookmark' is called twice when switching from
I found a workaround which is to simply call
editor.undoManager.unlock()
in the last line of createBookmark, but that might not play well with previous fixes done in this area?