Browse Source

preventDefault event

leizhe 4 years ago
parent
commit
22b1bf994c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/handler/editor.cljs

+ 2 - 1
src/main/frontend/handler/editor.cljs

@@ -3139,7 +3139,8 @@
           input (state/get-input)]
       (if-not (string/blank? text)
         (if (thingatpt/org-admonition&src-at-point input)
-          (paste-text-in-one-block-at-point)
+          (do (util/stop e)
+              (paste-text-in-one-block-at-point))
           (paste-text text e))
         (let [_handled
               (let [clipboard-data (gobj/get e "clipboardData")