This issue has been created
There are 8 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-c2eb172a-2d2b-48bf-b34d-d5a4886ce1d9 XWIKI-22317 Closed

Macros using HTML5 are sometimes badly rendered when edited in WYSIWYG mode

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ffcd8625-5504-48f1-86f5-87fdf6004023 Marius Dumitru Florea created this issue on 08/Jul/24 15:05
 
Summary: Macros using HTML5 are sometimes badly rendered when edited in WYSIWYG mode
Issue Type: cid:jira-generated-image-avatar-c2eb172a-2d2b-48bf-b34d-d5a4886ce1d9 Bug
Affects Versions: 15.10.11, 16.4.1, 16.5.0
Assignee: Unassigned
Components: CKEditor
Created: 08/Jul/24 15:05
Priority: cid:jira-generated-image-static-major-9fd04377-14f2-4dc3-bb06-1ba20c63b48d Major
Reporter: Marius Dumitru Florea
Description:

This can be reproduced easily with:

{{html clean="false"}}
<details>
  <summary>
    <span class="panel-title">Title</span>
  </summary>
  <div class="panel-body">Body</div>
</details>
{{/html}}

When you edit this in WYSIWYG mode, both the summary and the rest of the details are visible from the start and if you inspect the HTML you'll notice that both the summary and details tags are missing (removed by CKEditor). You're left with the SPAN and DIV.

 
 

8 updates

 
cid:jira-generated-image-avatar-ffcd8625-5504-48f1-86f5-87fdf6004023 Changes by Marius Dumitru Florea on 08/Jul/24 15:05
 
Fix Version: 16.4.2
Fix Version: 16.6.0-rc-1
Fix Version: 15.10.12
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Marius Dumitru Florea
Resolution: Fixed
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-ffcd8625-5504-48f1-86f5-87fdf6004023 Marius Dumitru Florea on 08/Jul/24 15:08
 

There's a bug in the code of CKEDITOR.plugins.xwikiMacro.isMacroOutput that is used by our custom configuration of CKEditor's Advanced Content Filtering, see https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-16.5.0/xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-webjar/src/main/webjar/config.js#L52 .