fix(whiteboard): pasting HTML shape issues

This commit is contained in:
Peng Xiao
2022-10-17 10:31:37 +08:00
parent 30dcb21fae
commit 63b83a03d3
3 changed files with 4 additions and 4 deletions

View File

@@ -67,7 +67,7 @@
(defn- get-whiteboard-tldr-from-text
[text]
(when-let [matched-text (util/safe-re-find #"<whiteboard-tldr>(.*)</whiteboard-tldr>" text)]
(try-parse-as-json (second matched-text))))
(try-parse-as-json (js/decodeURIComponent (second matched-text)))))
(defn- get-whiteboard-shape-refs-text
[text]