1
0
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:
Laurent Cozic 2021-08-05 12:09:21 +01:00
parent 7f00e4ea5b
commit bde39bf6b3

View File

@ -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);
});