mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
fix: disable global editing bindings when in block component editing
for example, codemirror, excalidraw modes
This commit is contained in:
@@ -2193,14 +2193,12 @@
|
||||
|
||||
:else
|
||||
(let [language (if (contains? #{"edn" "clj" "cljc" "cljs" "clojure"} language) "text/x-clojure" language)]
|
||||
(highlight/highlight (str (medley/random-uuid)) {:data-lang language} code)
|
||||
;; (if (:slide? config)
|
||||
;; (highlight/highlight (str (medley/random-uuid)) {:data-lang language} code)
|
||||
;; [:div
|
||||
;; (lazy-editor/editor config (str (dc/squuid)) attr code pos_meta)
|
||||
;; (when (and (= language "text/x-clojure") (contains? (set options) ":results"))
|
||||
;; (sci/eval-result code))])
|
||||
))))
|
||||
(if (:slide? config)
|
||||
(highlight/highlight (str (medley/random-uuid)) {:data-lang language} code)
|
||||
[:div
|
||||
(lazy-editor/editor config (str (dc/squuid)) attr code pos_meta)
|
||||
(when (and (= language "text/x-clojure") (contains? (set options) ":results"))
|
||||
(sci/eval-result code))])))))
|
||||
|
||||
:else
|
||||
"")
|
||||
|
||||
Reference in New Issue
Block a user