This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-13cc1d1d-5300-4233-ac8f-17eff91adcbd XWIKI-25571 Open

Edit the images of the gallery macro in place in the WYSIWYG editor

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a71638d0-9b42-4711-b046-f6bd3408b0e7 Charpentier Lucas created this issue on 23/Oct/26 15:50
 
Summary: Edit the images of the gallery macro in place in the WYSIWYG editor
Issue Type: cid:jira-generated-image-avatar-13cc1d1d-5300-4233-ac8f-17eff91adcbd Improvement
Affects Versions: 17.10.14, 18.8.0
Assignee: Unassigned
Components: Rendering - Gallery Macro
Created: 23/Oct/26 15:50
Priority: cid:jira-generated-image-static-major-16139b05-f456-4386-b2a7-3299374f05fc Major
Reporter: Charpentier Lucas
Description:

The content of the gallery macro is a plain text of image references in wiki syntax. The WYSIWYG editor shows the images, but they cannot be added, removed or reordered in place: changing the gallery needs the Edit Macro dialog, where adding an image means typing its reference, like image:Space.Page@alice.png.

The fix is done in GalleryMacro.java:

  • Declare the content as rich text, so that the editor edits the images in place: add one with the image picker of XWIKI-23735, remove one, or drag it to another position.
  • Keep a content area to type in when the gallery is empty, so that it can be inserted without the Edit Macro dialog and the cursor put there, see XWIKI-25563 and XWIKI-25569.

Depends on

  • XWIKI-23735, which provides the image picker to add the images.

KOs covered

Macro Criterion Problem Depends on
gallery E6 inplace The content is a plain text of wiki syntax, edited only in a text area of the Edit Macro dialog: the images cannot be added, removed or reordered in place, and adding one means typing its reference in wiki syntax. XWIKI-23735

Impact found on macro fluidity

This KO comes from the WYSIWYG usability audit of the macros, under the criterion E6 inplace of its usability criteria, which asks 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. 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 and XWIKI-25569, so that the gallery can be inserted without the Edit Macro dialog and the cursor put in it.