There is 1 update.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-9501e4b4-9f30-458a-9d5c-184944c2239a XRENDERING-831 Open

Show and edit the text of the comment macro in place in the WYSIWYG editor

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-5a36f025-a9be-47c2-a5e1-c4751557dfa4 Changes by Charpentier Lucas on 23/Oct/26 16:08
 
Description: The comment macro renders nothing, so the WYSIWYG editor shows only the generic "macro:comment" placeholder: reading or changing a comment needs opening the Edit Macro dialog, where it is a plain text area. For example, {{{{comment}}Remember to update this table every release.{{/comment}}}} shows only "macro:comment" in the editor.

The fix is done in [CommentMacro.java|https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-macros/xwiki-rendering-macro-comment/src/main/java/org/xwiki/rendering/internal/macro/comment/CommentMacro.java]: when the macro is rendered for the WYSIWYG editor, output the text of the comment in an area that is edited in place and styled as a comment, while view mode keeps rendering nothing.
An empty comment must keep that area, compact but reachable by one click, rather than the "macro:comment" placeholder, which one click selects but never puts the cursor in. XWIKI-25523 is related: it standardizes how a macro knows that it is rendered for the WYSIWYG editor.

h2. KOs covered
||Macro||Criterion||Problem||
|[comment|https://design.xwiki.org/xwiki/bin/view/Proposal/WYSIWYGusabilityofXWikimacros/Macros/comment/]|E6 inplace|The content is never shown in the editor, which only displays "macro:comment": reading or changing a comment needs the Edit Macro dialog, where it is a plain text area.|
|[comment|https://design.xwiki.org/xwiki/bin/view/Proposal/WYSIWYGusabilityofXWikimacros/Macros/comment/]|E5 empty|Minor. The empty macro keeps the visible "macro:comment" placeholder, which one click selects but never puts the cursor in: the content can only be typed in the Edit Macro dialog.|

h2. Impact found on macro fluidity
This KO comes These 2 KOs come from the [WYSIWYG usability audit of the macros|https://design.xwiki.org/xwiki/bin/view/Proposal/WYSIWYGusabilityofXWikimacros/Macros/], under the criterion criteria E6 inplace and E5 empty of its [usability criteria|https://design.xwiki.org/xwiki/bin/view/Proposal/WYSIWYGusabilityofXWikimacros/Usability%20criteria/], which asks ask that the content is edited in place, with an editing experience suited to its data, not in a text area of the Edit Macro dialog , and that an empty content stays visible and editable, with no area that cannot receive the cursor . The page of the macro, linked in the table, has the full notes and the steps to reproduce. It is also needed by XWIKI-25563, so that the Quick Action can insert the macro without the Edit Macro dialog.