xdan / jodit

Jodit - Best WYSIWYG Editor for You
https://xdsoft.net/jodit/
MIT License
1.71k stars 354 forks source link

Drag and Drop does not work #1190

Open ilezus-dev opened 3 weeks ago

ilezus-dev commented 3 weeks ago

Jodit Version: 3.24.9

Browser: Chrome OS: Mac Is React App: True Reproduced on xdsoft.net: True

I want to implement Drag and Drop for files (jpg, png, txt). If insertImageAsBase64URI is set to true, only images (jpg, png) work, but not files (txt).

When I try to drag and drop files, Jodit tries to send a request to the server. But I don't want to make a server request; I want to get the files from Drag and Drop, use a blob URL for these files, and add them as links.

I didn't find an explanation in the documentation. Could you please suggest how I can implement drag and drop for files? Or do I need to write a custom plugin?