wordcraft/apps
Valentin Klein 11a6ad60a5
Paste pictures from the system clipboard (screenshots, Copy Image, copied files) (#45) (#272)
egui's paste event only carries text, so a clipboard holding just a picture
sent no paste at all on Ctrl+V, and the ribbon/context-menu Paste only knew
WordCraft's own copy ("the clipboard is empty").

Desktop: the app reads the clipboard's picture through a new
Services::clipboard_picture (arboard, already in the build via egui-winit):
copied files first, else image pixels. Mod+V whose release arrives without a
paste event, and Paste from the ribbon or menus, insert that picture through
insert.picture (one undo step); text naming copied picture files inserts the
pictures. Pixel sizes are hostile: at most 16,000 px a side and 50 Mpx, the
buffer must match, files at most 200 MB.

Web: a document paste listener reads image files from the paste event when
there's no text and delivers them through the inbox like dropped pictures.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-10 14:54:28 -04:00
..
wordcraft Paste pictures from the system clipboard (screenshots, Copy Image, copied files) (#45) (#272) 2026-10-10 14:54:28 -04:00
wordcraft-cli Headless: file.setAuthor takes a name; review.trackChanges lists its value param (#90) (#224) 2026-10-10 09:43:05 -04:00
wordcraft-web Paste pictures from the system clipboard (screenshots, Copy Image, copied files) (#45) (#272) 2026-10-10 14:54:28 -04:00