Cancel a running upload and remove its placeholder.
Insert an image that is already hosted somewhere.
Draw arrows, boxes, words and blurs over the image under the selection
(or at at), burn them into its pixels and re-upload it, as a crop is.
One undo takes the markup off again.
Optionalat: PathOpen the OS file picker and upload everything chosen.
Rotate a quarter turn anticlockwise.
Optionalat: PathRotate a quarter turn clockwise.
Optionalat: PathRotate, flip or crop the image under the selection (or at at), re-upload
the new pixels and point the node at them.
The edit is destructive on purpose: a CSS rotation only exists inside this editor, while new bytes survive export, copy-paste and every other reader. Everything lands in a single transaction labelled for the history, so one undo puts back both the old URL and the old dimensions.
Optionalat: PathValidate and upload files, inserting one image node per accepted file.
With gallery, the images go in together as one gallery.
Image uploads bound to an editor: drag-and-drop, paste, and the ImageController.pickFiles file dialog all funnel through the same pipeline, compress, validate, insert a placeholder node, upload, then patch the node with the real URL.
The placeholder is tracked by its
uploadIdattribute rather than a position, so it survives arbitrary edits (and disappears cleanly if the user deletes it mid-upload).