Fix image paste handling in WYSIWYG editor #21
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Public/noodlenook!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/fix-copy-paste-images"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Image upload via toolbar button works, but copy-paste does not insert images into the editor.
Changes
Event interception (
frontend/src/components/WysiwygEditor.jsx){ capture: true }) to intercept paste events before Quill's clipboard modulee.stopPropagation()to prevent event bubbling to Quill's handlersType checking
indexOf('image') !== -1withstartsWith('image/')for precise MIME type matchingSelection handling
getSelection()fallback (same result asgetSelection(true))Images are inserted as base64 data URLs at cursor position or document start.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.