Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
14.1-rc-1
-
Integration
-
Unknown
-
N/A
-
N/A
-
Description
Edit a page in WYSIWYG mode
Write few words
Insert an icon/image between them
Select the image and some word and bold it using the toolbar menu item to obtain something like
and save the document.
Rendering reproduction steps:
<p>x <strong>y <!--startimage:false|-|attach|-|Sandbox.WebHome@XWikiLogo.png--><img alt="" src="/xwiki/bin/get/aaa1.60.1/?sheet=CKEditor.ResourceDispatcher&outputSyntax=plain&language=en&type=attach&reference=Sandbox.WebHome%40XWikiLogo.png&typed=true" /><!--stopimage--> z</strong></p>
Is supposed to return:
x **y [[image:Sandbox.WebHome@XWikiLogo.png]] z**
But returns:
x [[image:/xwiki/bin/get/aaa/aaa1.60.1/?sheet=CKEditor.ResourceDispatcher&outputSyntax=plain&language=en&type=attach&reference=Sandbox.WebHome%40XWikiLogo.png&typed=true]][[image:/xwiki/bin/download/Sandbox/WebHome/XWikiLogo.png?rev=1.1||alt="XWikiLogo.png"]]**y [[image:Sandbox.WebHome@XWikiLogo.png]] z**
Test case
.#----------------------------------------------------- .input|html/5.0 .# Verify that a figure that contains non-image-content is preserved in events and HTML 5 but lost in XWiki syntax. .#----------------------------------------------------- <p>x <strong>y <!--startimage:false|-|attach|-|Sandbox.WebHome@XWikiLogo.png--><img alt="" src="/xwiki/bin/get/aaa1.60.1/?sheet=CKEditor.ResourceDispatcher&outputSyntax=plain&language=en&type=attach&reference=Sandbox.WebHome%40XWikiLogo.png&typed=true" /><!--stopimage--> z</strong></p> .#----------------------------------------------------- .expect|xwiki/2.1 .#----------------------------------------------------- x **y [[image:Sandbox.WebHome@XWikiLogo.png]] z**
Note that this is working on with xhtml/1.0
Attachments
Issue Links
- depends on
-
XCOMMONS-2688 HTML cleaner doesn't consider math, embed, img, data, object, picture, video, iframe, template and q as phrasing content
- Closed