There are 6 updates, 1 comment.
This issue has been moved to XWiki Rendering project.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-1d92c2e5-e57e-4b11-afa5-2b2c68387079 XRENDERING-806 Open

Editable macro parameter gets input not meant for it

 
View issue   ยท   Add comment
 

6 updates

 
cid:jira-generated-image-avatar-c1ef3ab7-49bc-409c-9f04-5f4374df768a Changes by Marius Dumitru Florea on 23/Mar/26 18:54
 
Version: 18.1.0
Version: 18.1.0
Project: XWiki Platform Rendering
Component: Syntax - annotatedhtml/5.0
Component: CKEditor
Key: XWIKI XRENDERING - 24150 806
 
 

1 comment

 
cid:jira-generated-image-avatar-c1ef3ab7-49bc-409c-9f04-5f4374df768a Marius Dumitru Florea on 23/Mar/26 18:53
 

I can reproduce the problem with this content:

Text

{{info title="my title"}}
my content
{{/info}}

You need to place the caret at the end of the first line, after the word "Text" and press Enter, then switch to Source.

The WYSIWYG editor sends this HTML to be converted to wiki syntax:

<p>Text</p>
<div class="wikimodel-emptyline"></div>
<!--startmacro:info|-|-->
<div
  data-xwiki-non-generated-content="java.util.List&lt;org.xwiki.rendering.block.Block&gt;"
  data-xwiki-parameter-name="title"
  class="xwiki-metadata-container"
><p>my title</p></div>
<div
  data-xwiki-non-generated-content="java.util.List&lt;org.xwiki.rendering.block.Block&gt;"
  class="xwiki-metadata-container"
><p>my content</p></div>
<!--stopmacro-->

Which looks good. The result of the rendering is:

Text

{{info title="


my title"}}
my content
{{/info}}

The rendering is basically including the empty line in the value of the title parameter. This looks like a bug in the code that parses the values of macro parameters that are editable in-place (their value is non-generated content).