mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-26 21:12:59 +02:00
Desktop: Fixes #5268: Disable "Dropped file type is not supported" notification in Rich Text editor
This commit is contained in:
parent
7f00e4ea5b
commit
bde39bf6b3
@ -625,6 +625,13 @@ const TinyMCE = (props: NoteBodyEditorProps, ref: any) => {
|
||||
|
||||
// This is triggered when an external file is dropped on the editor
|
||||
editor.on('drop', (event: any) => {
|
||||
// Prevent the message "Dropped file type is not
|
||||
// supported" to show up. It was added in a recent
|
||||
// TinyMCE version and doesn't apply since we do support
|
||||
// the file type.
|
||||
// https://stackoverflow.com/questions/64782955/tinymce-inline-drag-and-drop-image-upload-not-working
|
||||
event.preventDefault();
|
||||
|
||||
props_onDrop.current(event);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user