Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercept (and upload) pasted images #14

Open
michael opened this issue May 12, 2023 · 1 comment
Open

Intercept (and upload) pasted images #14

michael opened this issue May 12, 2023 · 1 comment

Comments

@michael
Copy link
Owner

michael commented May 12, 2023

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:

  • Direct image pastes (like copy and paste an image from the filesystem)
  • Implicit image pasts (you paste a snippet of HTML which contains images)

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

@michael
Copy link
Owner Author

michael commented Jul 19, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant