Open floogy opened 3 years ago
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.
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.