Details
-
Bug
-
Resolution: Solved By
-
Major
-
None
-
1.34
-
None
-
None
-
Unknown
-
Description
Follow this steps to reproduce:
- Edit a page in WYSIWYG edit mode
- Switch CKEditor to Source mode
- Switch to Wiki edit mode (you need to be an advanced user)
The wiki syntax is messed up as a consequence. The reason is because the edit mode switch doesn't trigger any event so CKEditor doesn't get to update its internal fields before the page is submitted. The fix would be to:
- trigger a JavaScript event before switching edit modes
- catch this event in https://github.com/xwiki-contrib/application-ckeditor/blob/master/plugins/src/main/resources/xwiki-save/plugin.js#L74 along with beforePreview and beforeSave
Attachments
Issue Links
- blocks
-
XWIKI-15241 Switching from the WYSWYG Editor's Source tab to the Wiki Editor performs unneeded conversion
- Closed