There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-897fe369-9a86-4c9d-b27b-ab3a85832736 XWIKI-23320 Open

Some macro output is hidden when editing them

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-abdaa27a-68ea-4017-a956-90713e0d743e Marius Dumitru Florea on 16/Jul/25 14:46
 

Simon Urli this doesn't look like a WYSIWYG / CKEditor issue. From what I can see, the JIRA macro is using async rendering, meaning that there is an additional HTTP request needed to fetch the macro output. I can see this request made in view mode, but I don't see it made when entering in-place edit mode. This suggests that either the async rendering or the JIRA macro itself doesn't listen to xwiki:dom:updated event triggered by the WYSIWYG editor after the macro is inserted. So JIRA macros that are inserted dynamically, after the page is loaded, are not activated. Their output remains empty so the WYSIWYG editor has to display the placeholder.

Note that the Document Tree macro behaves correctly. It doesn't use async rendering but is also dynamic in the sense that it is empty initially, and then its content is fetched asynchronously. It listens to xwiki:dom:updated to activate the document tree instances lazy loaded.

 
cid:jira-generated-image-avatar-abdaa27a-68ea-4017-a956-90713e0d743e Marius Dumitru Florea on 16/Jul/25 14:47
 
[~surli] this doesn't look like a WYSIWYG / CKEditor issue. From what I can see, the JIRA macro is using async rendering, meaning that there is an additional HTTP request needed to fetch the macro output. I can see this request made in view mode, but I don't see it made when entering in-place edit mode. This suggests that either the async rendering or the JIRA macro itself doesn't listen to {{xwiki:dom:updated}} event triggered by the WYSIWYG editor after the macro is inserted (or when entering in-place edit mode) . So JIRA macros that are inserted dynamically, after the page is loaded, are not activated. Their output remains empty so the WYSIWYG editor has to display the placeholder.

Note that the Document Tree macro behaves correctly. It doesn't use async rendering but is also dynamic in the sense that it is empty initially, and then its content is fetched asynchronously. It listens to {{xwiki:dom:updated}} to activate the document tree instances lazy loaded.