1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-23 18:53:36 +02:00

Revert "Desktop: Fixes #3302: Prevent drag and dropping of text in editor as it can lead to data loss"

This reverts commit a75db94da57fb35a593c45ebc0e5d0159caa826f.

It turns out people often drag and drop text, so restoring the functionality.

See https://discourse.joplinapp.org/t/9406
This commit is contained in:
Laurent Cozic 2020-06-15 19:16:22 +01:00
parent fcd00b3212
commit 780c5c80ae

View File

@ -465,12 +465,6 @@ function AceEditor(props: NoteBodyEditorProps, ref: any) {
};
}, [editor, onEditorPaste, onEditorContextMenu]);
useEffect(() => {
// We disable dragging ot text because it's not really supported, and
// can lead to data loss: https://github.com/laurent22/joplin/issues/3302
if (editor) editor.setOption('dragEnabled', false);
}, [editor]);
const webview_domReady = useCallback(() => {
setWebviewReady(true);
}, []);