Skip to content

Commit

Permalink
fix(editor): handle windows crlf in clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf authored and tiensonqin committed Jun 16, 2022
1 parent 9928d43 commit 0c19a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/frontend/handler/paste.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c19a02

Please sign in to comment.