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

Paste and Upload Image from clipboard #268

Open
floogy opened this issue Nov 13, 2020 · 1 comment
Open

Paste and Upload Image from clipboard #268

floogy opened this issue Nov 13, 2020 · 1 comment

Comments

@floogy
Copy link

floogy commented Nov 13, 2020

Somebody already created a working Paste and Upload Image from clipboard for SimpleMDE, which this project forked from.

Required code may be right here:
https://github.com/gautiermichelin/simplemde-markdown-editor

User created this in response to sparksuite#328

PS: Generating and saving a real image file in the background is essential to keep massive amounts of base64 image data out of your database tables.

@Offerel
Copy link

Offerel commented Feb 10, 2021

Stumbled about this issue here after creating my own workaround for this. I'm using EasyMDE in a notes AddOn for Roundcube. I have created a onPaste event for the editor and use my own code for receiving the clipboard and send this to the backend. Maybe this is what you need? Please have a look over here: https://github.com/Offerel/roundcube_primitivenotes/blob/87836391516ac8f6e5d106d2f605247b74233a89/js/notes.js#L199

BTW: This uses also at the same level turndown, which converts HTML to Markdown on paste, so you can have both.

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

No branches or pull requests

2 participants