There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e3241b7a-3ae1-4d5f-8fab-b8b41b7474c0 XWIKI-24758 Closed

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

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-be692cd3-a763-4cf4-9bef-1b69b7261c45 Marius Dumitru Florea on 12/Nov/26 19:10
 

Follow-up merged in 8796e8c (PR #7330). Summary of the changes:

  • A pasted or dropped file that isn't an image is now linked inline, where the caret is or where the file was dropped, instead of in a paragraph of its own. Same as the CKEditor integration.
  • Several files transferred at once are separated by a space, so they no longer save as [[attach:notes.txt]][[attach:agenda.txt]].
  • On drop, the caret is moved under the pointer before the upload starts, so the links land where the files were dropped even if the content is scrolled during a slow upload.
  • A transfer mixing images with other files, or one that doesn't land on the content (e.g. a drop over a dialog), is still handled by BlockNote, as blocks.
  • Known limitation: when BlockNote inserts the blocks below the target paragraph (always on paste, and on a drop under the vertical middle of the paragraph) they come out in reverse order. This is a BlockNote bug, reported as BlockNote#3326; ImageIT pins the current behaviour so we notice when it's fixed.
  • ImageIT now covers the transfers as drop/paste pairs, dropping and pasting in the middle of a sentence to verify the inline placement.