There are 5 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8e1f9a19-b2a4-40c1-910c-755087d498ae XWIKI-24241 Closed

The image quick action should provide image suggestions and allow browsing existing images

 
View issue   ·   Add comment
 

5 updates

 
cid:jira-generated-image-avatar-1ca41d52-074d-4c3b-a81e-7298c1240334 Changes by Marius Dumitru Florea on 30/Oct/26 13:51
 
Attachment: image-suggestions.webm
Attachment: image-suggestions.png
Resolution: Fixed
Tests: Unit,Integration
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-1ca41d52-074d-4c3b-a81e-7298c1240334 Marius Dumitru Florea on 30/Oct/26 13:52
 

Implemented in https://github.com/xwiki/xwiki-platform/pull/5991 (commit https://github.com/xwiki/xwiki-platform/commit/77651481e0280b1edac8f3fa93d50833a6862ccd), started by Clément Eraud.

Changes:

  • The Image quick action of the BlockNote editor now opens an image suggestion menu, also opened by typing image: followed by a query. It shows:
    • Browse images..., which opens the Image Wizard;
    • Upload image..., which opens the file picker, restricted to images, and inserts the uploaded image;
    • up to 5 images matching the query, with a thumbnail and their location. When nothing is typed yet (right after choosing the quick action) it shows the most recent images, like the CKEditor integration does.
  • The quick action is shown only when the edited syntax supports images.
  • Images are saved with a reference relative to the edited document (e.g. [[image:cat.png]], [[image:Other@cat.png]]), like the WYSIWYG editor does, instead of an untyped URL.
  • The uploaded images are attached to the edited document, which is also passed to the Image Wizard.
  • The link suggestions show the location of the suggested pages and attachments, and the most recent ones for an empty query.

The image suggestions for an empty query:

_thumb_45809.png

Screencast: image-suggestions.webmlink_attachment_7.gif