Explorar o código

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

situ2001 %!s(int64=2) %!d(string=hai) anos
pai
achega
e0eb520dc3
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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)))