Insert an Image with the BlockNote Editor
Steps
To insert an image with the BlockNote editor:
- Type /image to open the "slash menu", and select "Image".

- Choose the image in the menu that opens. It offers "Browse images..." and "Upload image..." at the top, followed by up to five suggested images.

- Pick one of the suggested images. Without a search, these are the images most recently attached in the wiki. Type part of the file name to search the images.
- Select "Upload image..." to choose an image file on your computer. The file is attached to the Page. This action is not offered when you are not allowed to upload files, for example when adding a comment to a Page you can't edit.
- Select "Browse images..." to open the "Select Image" modal, where you can pick an image attached to any Page, upload one, choose an icon or type the address of an image. Click "Select", set the image options in the "Edit Image" modal, then click "Insert".
The image is inserted as a new block below the current one, or in its place when the current block is empty.
You can also open the image menu without the slash menu: type image: followed by part of the file name.
XWiki 18.10.0+
Paste or Drop an Image
You can also paste an image, such as a screenshot, or drop an image file from your computer over the content. The image is attached to the Page and inserted as an image block:
- a pasted image goes below the block where the cursor is;
- a dropped image goes above the block you drop it on, or below it when you drop it on the lower half of that block.
When that block is empty, the image takes its place.
A spinner is displayed in place of the image while it is uploaded.
A pasted image is renamed after the moment it was pasted, for example 1795511861570-260.png, because browsers give pasted images a generic name, such as image.png, and each paste would otherwise replace the previous one. A dropped image keeps its file name, and replaces the Attachment of the Page that already has that name, if any.
Other files are linked rather than inserted, see Insert a Link with the BlockNote Editor. The following video drops an image, pastes a second one, then drops a PDF file:
When a file can't be uploaded, its block is replaced by an empty paragraph and an error message names the file (for a pasted file, the name it was renamed to). Pasting or dropping files does nothing when you are not allowed to upload files, for example when adding a comment to a Page you can't edit.
Outside a realtime collaboration session, for example when the collaboration server can't be reached, the files you upload are attached to the Page only when you save it: leaving the editor without saving attaches nothing. In a realtime collaboration session, they are attached right away.
XWiki <18.10.0
Selecting "Image" in the slash menu inserts an empty image block. In the panel that opens, click "Upload" to attach a file to the Page, or type the address of the image in the field. The address of an Attachment of the wiki and the address of an external file are both accepted. Since 18.7.0RC1, the field suggests the Attachments matching what you type.

FAQ
How do I change an image I already inserted?
XWiki 18.3.0+ Select the image, then click the edit button of the formatting toolbar.