This issue has been created
There are 8 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f6b98583-4792-40ad-84b7-85136e2a9906 XWIKI-22898 Open

The macro placeholder is visible when inserting the Children macro from the in-place WYSIWYG edit mode

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-689e1e5c-c09e-40d8-9a22-3a02bfcb61a2 Marius Dumitru Florea created this issue on 20/Feb/25 09:21
 
Summary: The macro placeholder is visible when inserting the Children macro from the in-place WYSIWYG edit mode
Issue Type: cid:jira-generated-image-avatar-f6b98583-4792-40ad-84b7-85136e2a9906 Bug
Affects Versions: 16.10.4, 17.1.0-rc-1
Assignee: Unassigned
Components: CKEditor, WYSIWYG Editor
Created: 20/Feb/25 09:21
Labels: regression
Priority: cid:jira-generated-image-static-major-2ee27e06-b4ab-4d59-b149-1513e9cb4c95 Major
Reporter: Marius Dumitru Florea
Description:

You can reproduce this easily simply by:

  • editing a page in-place
  • inserting the Children macro (e.g. using the quick actions)

The macro placeholder is visible before the macro output.

 
 

8 updates

 
cid:jira-generated-image-avatar-689e1e5c-c09e-40d8-9a22-3a02bfcb61a2 Changes by Marius Dumitru Florea on 20/Feb/25 09:26
 
Fix Version: 17.1.0
Fix Version: 16.10.5
Development Priority: High
Difficulty: Unknown Easy
Documentation: N/A
Documentation in Release Notes: N/A
Assignee: Marius Dumitru Florea
Tests: Integration
 
 

1 comment

 
cid:jira-generated-image-avatar-689e1e5c-c09e-40d8-9a22-3a02bfcb61a2 Marius Dumitru Florea on 20/Feb/25 09:25
 

Side effect of XWIKI-22834. The problem with the Children macro is that its output is empty initially, when the macro is inserted, so the WYSIWYG editor is forced to show the macro placeholder, but then the content is loaded async, lazy, but the state of the macro placeholder is not updated. Other dynamic macros may be in the same situation.

As suggested by Michael Hamann, one option is to listen to the xwiki:dom:updated event and update the state of the macro placeholder.