There is 1 update, 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-01abe571-6f4b-487f-8656-fa0f96da1585 XWIKI-22443 Open

blockquote / quote isn't properly saved by the inplace and wysiwyg editor

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-3abdffe4-8cc0-49fc-a411-aeff43d33d84 Changes by Vincent Massol on 11/Aug/25 13:52
 
Component: CKEditor
 
 

2 comments

 
cid:jira-generated-image-avatar-ee579553-6ad9-48e7-93fd-3d361e69014a Manuel Leduc on 08/Aug/25 13:57
 

This bug at least as old as XWiki 11.

 
cid:jira-generated-image-avatar-902accef-cdcd-4108-bca1-e2666da14972 Marius Dumitru Florea on 12/Aug/25 10:17
 

The root cause of this issue is a limitation on the XWiki Syntax / Rendering side. There are actually two issues:

  • You can quote only single paragraphs, see XRENDERING-259. The content you selected includes a heading, a definition list and multiple paragraphs. XWiki syntax doesn't support quoting definition lists, and it also doesn't support grouping multiple blocks under the same quote.
  • Definition lists can't contain block content, see XRENDERING-233. The definition list you copied has multiple paragraphs.

On the CKEditor side, ideally the editor shouldn't allow you to:

  • quote definition lists or multiple blocks at once, if this can't be saved
  • include blocks in definition lists, if this can't be saved

We might be able to achieve this by properly configuring CKEditor's Advanced Content Filter (ACF). The outcome would be:

  • the pasted content is filtered in order to fix the "invalid" content (from the point of view of the XWiki Syntax), which means the result after the paste will not look like what you see on https://git-scm.com/docs/git-clone (e.g. paragraphs will be moved outside the definition list)
  • the blockquote button should be disabled when selecting content that can't be quoted in XWiki Syntax.

Obviously, the best is to improve the XWiki Rendering, but it's not easy.