Raw paste should only do basic pasting

Fix #6815 and fix #6142.
Raw paste used to do this before #5396 was introduced.
We accidentally coupled rich and raw paste starting at
999defdad1 which then caused these issues
This commit is contained in:
Gabriel Horner
2023-03-16 16:48:03 -04:00
committed by Gabriel Horner
parent 1c3ef2ccb5
commit 72298d23c8
2 changed files with 23 additions and 14 deletions

View File

@@ -192,7 +192,7 @@
(utils/getClipText
(fn [clipboard-data]
(when (state/get-input)
(paste-text-or-blocks-aux input e clipboard-data nil)))
(editor-handler/insert clipboard-data true)))
(fn [error]
(js/console.error error)))
(let [clipboard-data (gobj/get e "clipboardData")