From 33be63c0213c82837fc7421c2321007a8907df5c Mon Sep 17 00:00:00 2001 From: wltb Date: Fri, 16 Jan 2026 10:08:56 +0100 Subject: [PATCH] Bring back drag & drop for text --- MacDown/Code/View/MPEditorView.m | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/MacDown/Code/View/MPEditorView.m b/MacDown/Code/View/MPEditorView.m index 6c7804ac..84578b19 100644 --- a/MacDown/Code/View/MPEditorView.m +++ b/MacDown/Code/View/MPEditorView.m @@ -44,24 +44,6 @@ - (void)awakeFromNib { [super awakeFromNib]; } -- (NSDragOperation)draggingEntered:(id )sender { - NSPasteboard *pboard; - NSDragOperation sourceDragMask; - - sourceDragMask = [sender draggingSourceOperationMask]; - pboard = [sender draggingPasteboard]; - - if ([pboard canReadItemWithDataConformingToTypes:[NSArray arrayWithObjects:@"public.jpeg", nil]]) { - if (sourceDragMask & NSDragOperationLink) { - return NSDragOperationLink; - } else if (sourceDragMask & NSDragOperationCopy) { - return NSDragOperationCopy; - } - } - - return NSDragOperationNone; -} - - (BOOL)performDragOperation:(id )sender { NSPasteboard *pboard; NSDragOperation sourceDragMask; @@ -88,7 +70,7 @@ - (BOOL)performDragOperation:(id )sender { } else { return NO; } - } + } else return [super performDragOperation:sender]; return YES; }