fix(editor): handle windows crlf in clipboard

pull/5744/head
Andelf 2022-06-16 17:46:02 +08:00 committed by Tienson Qin
parent 9928d437c9
commit 0c19a02a2d
1 changed files with 1 additions and 1 deletions

View File

@ -63,8 +63,8 @@
[text e html]
(util/stop e)
(let [copied-blocks (state/get-copied-blocks)
copied-graph (:copy/graph copied-blocks)
input (state/get-input)
text (string/replace text "\r\n" "\n") ;; Fix for Windows platform
internal-paste? (and
(seq (:copy/blocks copied-blocks))
;; not copied from the external clipboard