There is 1 update, 2 comments.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-e1b52247-ea0a-4f95-aafc-d09e4b0d34de XRENDERING-753 Open

User can not save page after copy and paste the row with mentioned macro and some text into another row in the table

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-5e22c274-3e63-4bc0-bac1-ac95a336f363 Changes by Vincent Massol on 05/Aug/24 15:44
 
Attachment: Screenshot 2024-08-05 at 15.44.18.png
 
 

2 comments

 
cid:jira-generated-image-avatar-5e22c274-3e63-4bc0-bac1-ac95a336f363 Vincent Massol on 05/Aug/24 15:45
 

Note the xaction in the request looks wrong too: _thumb_42734.png

 
cid:jira-generated-image-avatar-5b7654e4-2489-4bd7-9d85-bba9d387daa1 Nikita Petrenko on 05/Aug/24 15:50
 

yes here's the entire content of request

{
	"title": "Table+With+Mentioning",
	"form_token": "SM4DhWSckrJwo00zqCcfQQ",
	"async": "true",
	"content": "<table><tbody><tr><td>&nbsp;</td><td><!--startmacro:mention|-|reference=\"XWiki.npetrenko\"+style=\"FULL_NAME\"+anchor=\"XWiki-npetrenko-vmfpml\"--><!--stopmacro--></td><td>Here+is+some+Text</td></tr><tr><td>&nbsp;</td><td><span+tabindex=\"-1\"+contenteditable=\"false\"><span+data-macro=\"startmacro:mention|-|reference=&quot;XWiki.npetrenko&quot;+style=&quot;FULL_NAME&quot;+anchor=&quot;XWiki-npetrenko-vmfpml&quot;\"+data-widget=\"xwiki-macro\"+data-xwiki-dom-updated=\"true\"+class=\"macro\"><span+class=\"hidden+macro-placeholder\">macro:mention</span><span+data-macro=\"startmacro:velocity|-||-|#set+($reference+=+$wikimacro.parameters.reference)\n#set+($style+=+$wikimacro.parameters.style)\n#set+($type+=+&quot;$!wikimacro.parameters.type&quot;)\n#set+($content+=+$services.mentions.format($reference.reference,+$style,+$type))\n#set+($anchor+=+$wikimacro.parameters.anchor)\n#set+($isCurrentUser+=+$xcontext.userReference+==+$reference.reference+&amp;&amp;+($type+==+''+||+$type++==+'user'))\n#set+($cssClasses+=+['xwiki-mention',+'user'])\n#if+($isCurrentUser)\n++#set+($discard+=+$cssClasses.add('self'))\n#end\n#set+($link+=+$xwiki.getURL($reference.reference,+'view'))\n\\{\\{html}}\n&lt;\\a+id=&quot;$escapetool.xml($anchor)&quot;+class=&quot;$stringtool.join($cssClasses,+'+')&quot;+data-reference=&quot;$escapetool.xml($services.model.serialize($reference.reference,+'default'))&quot;+href=&quot;$escapetool.xml($link)&quot;&gt;##\n++$escapetool.xml($content)##+Do+not+remove+this+comment+as+it+ensures+that+the+spacing+after+mention+is+not+broken.\n&lt;\\/a&gt;\n\\{\\{/html}}\"+class=\"macro\"><span+class=\"hidden+macro-placeholder\">macro:velocity</span><span+data-macro=\"startmacro:html|-||-|&lt;\\a+id=&quot;XWiki-npetrenko-vmfpml&quot;+class=&quot;xwiki-mention+user+self&quot;+data-reference=&quot;xwiki:XWiki.npetrenko&quot;+href=&quot;/xwiki/bin/view/XWiki/npetrenko&quot;&gt;@Nikita+Petrenko&lt;\\/a&gt;\"+class=\"macro\"><span+class=\"hidden+macro-placeholder\">macro:html</span><!--startwikilink:xwiki:XWiki.npetrenko--><span+class=\"wikilink\"><a+id=\"XWiki-npetrenko-vmfpml\"+class=\"xwiki-mention+user+self\"+href=\"/xwiki/bin/view/XWiki/npetrenko\">@Nikita+Petrenko</a></span><!--stopwikilink--></span></span></span></span></td><td>Here+is+some+Text</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table>",
	"RequiresHTMLConversion": "content",
	"content_syntax": "xwiki/2.1",
	"language": "en",
	"xaction": [
		"$escapetool.xml($action)",
		"saveandcontinue",
		"cancel"
	],
	"xeditaction": "get",
	"previousVersion": "6.1",
	"isNew": "false",
	"editingVersionDate": "1722584424000",
	"comment": "",
	"action_saveandcontinue": "",
	"minorEdit": "1",
	"ajax": "true"
}