mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-11 11:12:03 +02:00
Desktop: Attempt to fix Outlook drag and drop on Markdown editor (#4093)
This commit is contained in:
parent
bb8cac2b2f
commit
92bcb25ef7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user