mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
Revert "Desktop: Fixes #3302: Prevent drag and dropping of text in editor as it can lead to data loss"
This reverts commit a75db94da5
.
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:
parent
fcd00b3212
commit
780c5c80ae
@ -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);
|
||||
}, []);
|
||||
|
Loading…
Reference in New Issue
Block a user