You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
Desktop: Attempt to fix Outlook drag and drop on Markdown editor (#4093)
This commit is contained in:
@@ -142,6 +142,8 @@ function Editor(props: EditorProps, ref: any) {
|
||||
const coords = cm.coordsChar({ left: event.x, top: event.y });
|
||||
cm.setCursor(coords);
|
||||
}
|
||||
|
||||
event.dataTransfer.dropEffect = 'copy';
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -10,7 +10,6 @@ export default function useDropHandler(dependencies: HookDependencies) {
|
||||
|
||||
return useCallback(async (event: any) => {
|
||||
const dt = event.dataTransfer;
|
||||
dt.dropEffect = 'copy';
|
||||
const createFileURL = event.altKey;
|
||||
|
||||
if (dt.types.indexOf('text/x-jop-note-ids') >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user