Преглед изворни кода

fix(editor): pasting of html list

Andelf пре 2 година
родитељ
комит
eb22435280
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/main/frontend/handler/paste.cljs

+ 3 - 3
src/main/frontend/handler/paste.cljs

@@ -160,14 +160,14 @@
                                          nil)))]
                         (if (string/blank? result) nil result))
             text-blocks? (if (= format :markdown) markdown-blocks? org-blocks?)
-            blocks? (text-blocks? text)
             text' (or html-text
                       (when (gp-util/url? text)
                         (wrap-macro-url text))
-                      text)]
+                      text)
+            blocks? (text-blocks? text')]
         (cond
           blocks?
-          (paste-text-parseable format text)
+          (paste-text-parseable format text')
 
           (util/safe-re-find #"(?:\r?\n){2,}" text')
           (paste-segmented-text format text')