Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
17.10.14, 18.8.0
-
None
-
Unknown
-
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.
Attachments
Issue Links
- blocks
-
XWIKI-25563 Insert the wrapper macros from Quick Actions without the Edit Macro dialog when the content is their only mandatory field
-
- Open
-
-
XWIKI-25569 Put the cursor in the macro content after inserting a macro whose content is edited in place
-
- Open
-
- depends on
-
XWIKI-23735 Provide an image picker for the Gallery macro when used in WYSIWYG
-
- Open
-