Details
-
Bug
-
Resolution: Fixed
-
Major
-
14.2-rc-1
-
Integration
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
- Insert an image without a caption into a document and save and view the document.
- Edit the document in the WYSIWYG editor and click the caption option in the image dialog. Save the document again.
- Edit the document again and switch to source mode (or edit in the "Wiki" editor)
Expected result:
There is no (% class="wikigeneratedid" %) in the source and no id attribute on the image.
Actual result:
There is a (% class="wikigeneratedid" %) in the line above the image and an id attribute on the image.
This is because enabling the caption on an existing image in CKEditor moves the class from the image to the figure. We probably need to protect the class similar to how we treat the freestanding image class.
For fixing existing documents with this content, I've created XRENDERING-706 but I think we should also fix the original issue in CKEditor.
Attachments
Issue Links
- is related to
-
XRENDERING-706 The class wikigeneratedid is not considered/removed when it is on the figure that surrounds an image
- Open
-
XWIKI-20772 data-widget is added when removing the caption from an image
- Closed