fix pasting in src block not working on iOS

close https://github.com/logseq/logseq/issues/4914
This commit is contained in:
llcc
2022-04-15 12:18:13 +08:00
committed by Tienson Qin
parent b7b73613db
commit cb61578a15

View File

@@ -3177,8 +3177,9 @@
input (state/get-input)]
(if-not (string/blank? text)
(if (thingatpt/org-admonition&src-at-point input)
(do (util/stop e)
(paste-text-in-one-block-at-point))
(when-not (mobile-util/native-ios?)
(util/stop e)
(paste-text-in-one-block-at-point))
(paste-text text e))
(let [_handled
(let [clipboard-data (gobj/get e "clipboardData")