mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix formatting being lost in inter-field pasting on macOS
ownsClipboard() always returns false on macOS regression introduced in PR 274
This commit is contained in:
parent
fccb458fda
commit
b4019473ab
1 changed files with 1 additions and 1 deletions
|
@ -991,7 +991,7 @@ class EditorWebView(AnkiWebView):
|
|||
# add a comment in the clipboard html so we can tell text is copied
|
||||
# from us and doesn't need to be stripped
|
||||
clip = self.editor.mw.app.clipboard()
|
||||
if not clip.ownsClipboard():
|
||||
if not isMac and not clip.ownsClipboard():
|
||||
return
|
||||
mime = clip.mimeData()
|
||||
if not mime.hasHtml():
|
||||
|
|
Loading…
Reference in a new issue