There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e7996eaa-bf46-47a1-bf7b-3678e5367c2d XWIKI-24062 Open

Macros without (visible) output are not visible in the BlockNote editor

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-aa593f4d-db9b-4da1-a1f0-76d7ac7dc05a Marius Dumitru Florea on 20/Jul/26 14:44
 

XWIKI-24157 has partially fixed this for static macros that don't produce any output. This:

one {{html}}{{/html}} three

shows the macro placeholder, unlike this:

one {{html}}<span class="test"></span>{{/html}} three

which doesn't show the macro placeholder, so the user has no idea there is a macro there. We need to check not only the presence of a macro output but also whether the macro output is actually visible. And we need to think about macros that load their output lazily.