This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-cbbd5cd1-3a50-4ee8-a9fb-6c3ead4cb386 XWIKI-24758 Open

The files that are pasted or dropped over the editor should be uploaded as attachments of the edited page

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7694230e-e0b4-4251-9f47-530ea1e0bbd1 Marius Dumitru Florea created this issue on 31/Aug/26 12:23
 
Summary: The files that are pasted or dropped over the editor should be uploaded as attachments of the edited page
Issue Type: cid:jira-generated-image-avatar-cbbd5cd1-3a50-4ee8-a9fb-6c3ead4cb386 New Feature
Affects Versions: 18.7.0
Assignee: Unassigned
Components: BlockNote
Created: 31/Aug/26 12:23
Priority: cid:jira-generated-image-static-major-75b4429a-b8b4-4f6f-a036-86387ffcda4b Major
Reporter: Marius Dumitru Florea
Description:

Pasting  / dropping a file should upload that file as an attachment of the edited page and then insert the corresponding block in the edited content (e.g. an image block for an image). The inserted block should reference the attached (internal) file.

We currently get this warning:

Attempted ot insert file, but uploadFile is not set in the BlockNote editor options

We also need to check how BlockNote handles the async upload of the time. The end user needs to be aware that the pasted / dropped file is currently being uploaded (ideally with a progress bar).

There might be cases when the pasted file doesn't have a name (and we need one to be able to upload the file as an attachment). We probably want to ask the user for a name in this case, with a fallback on some default generated name.

There is also the case of pasting HTML that includes images. We may want to provide the user the option to unload the referenced external images as page attachments, but this might deserve a separate JIRA issue.