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

fix(paste): do not convert url to marco while raw pasting

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

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

@@ -198,9 +198,7 @@
          (utils/getClipText
          (utils/getClipText
           (fn [clipboard-data]
           (fn [clipboard-data]
             (when-let [_ (state/get-input)]
             (when-let [_ (state/get-input)]
-              (let [text (or (when (gp-util/url? clipboard-data)
-                               (wrap-macro-url clipboard-data))
-                             clipboard-data)]
+              (let [text clipboard-data]
                 (paste-text-or-blocks-aux input e text nil))))
                 (paste-text-or-blocks-aux input e text nil))))
           (fn [error]
           (fn [error]
             (js/console.error error)))
             (js/console.error error)))