You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Desktop: Fixes #3302: Prevent drag and dropping of text in editor as it can lead to data loss
This commit is contained in:
@@ -477,6 +477,12 @@ function AceEditor(props: NoteBodyEditorProps, ref: any) {
|
|||||||
};
|
};
|
||||||
}, [editor, onEditorPaste, onEditorContextMenu, lastKeys]);
|
}, [editor, onEditorPaste, onEditorContextMenu, lastKeys]);
|
||||||
|
|
||||||
|
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(() => {
|
const webview_domReady = useCallback(() => {
|
||||||
setWebviewReady(true);
|
setWebviewReady(true);
|
||||||
}, []);
|
}, []);
|
||||||
|
Reference in New Issue
Block a user