quill-image-upload
quill-image-upload copied to clipboard
A module for Quill rich text editor to upload images to be selected from toolbar editor.
Tested on iOS 12.1.2 and macOS Mojave 10.14. Feature perfectly works on Firefox and Chrome Edit: Now works on Safari on macOS but still not working on iOS browsers
The API that I'm using for image upload returns `201` headers with successful responses. And that's also a valid response. So, I think this library should also accept any 2XX...
image remove and delete
I've got this working right up until the point insertEmbed (quill-image-upload/src/image-upload.js) is called: ` /** * Insert the image into the document at the current cursor position * @param {String}...
Insert the image on the cursor position instead of at the end of the content. Credit goes to @caasi
I've added a sort of a mix with the image-drop plugin. Feel free to ask for changes in case you are interested in merging.
When I upload an image to a server, then the response code is 201. https://github.com/fxmontigny/quill-image-upload/blob/71d9009be03196a2a3eb05a962f79af91c3ef735/index.js#L95 please check https://www.django-rest-framework.org/api-guide/status-codes/#successful-2xx
Current code will fallback to `this.quill.getLength()` when you move your cursor to the beginning of content. ```javascript insert(dataUrl) { const index = (this.quill.getSelection() || {}).index || this.quill.getLength(); this.quill.insertEmbed(index, 'image', dataUrl,...