michael / editable-website

A SvelteKit template for building CMS-free editable websites
https://editable.website
MIT License
1.34k stars 103 forks source link

Intercept (and upload) pasted images #14

Open michael opened 1 year ago

michael commented 1 year ago

Currently when you paste images into the editor they'll be converted to base64. But we don't want to store base64 strings in the HTML in our database.

We should be able to handle:

In both cases we want to upload the images to MinIO, so everything is properly self-contained.

michael commented 11 months ago

Implemented in PostOwl, we just need to carry this over here. We can think about handling cmd+p paste (when there is only one image, and no HTML in the clipboard).