Add test for raw url paste fix

This commit is contained in:
Gabriel Horner
2023-03-15 13:56:50 -04:00
committed by Gabriel Horner
parent e0eb520dc3
commit e8dd8a679e
2 changed files with 25 additions and 6 deletions

View File

@@ -197,9 +197,8 @@
(if raw-paste?
(utils/getClipText
(fn [clipboard-data]
(when-let [_ (state/get-input)]
(let [text clipboard-data]
(paste-text-or-blocks-aux input e text nil))))
(when (state/get-input)
(paste-text-or-blocks-aux input e clipboard-data nil)))
(fn [error]
(js/console.error error)))
(let [clipboard-data (gobj/get e "clipboardData")