mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
enhance: ESC on code back to raw editor
Also, removed :editor/pending-type-block.
This commit is contained in:
@@ -1536,3 +1536,10 @@ Arg *stop: atom, reset to true to stop the loop"
|
||||
(js->clj)
|
||||
(into {})
|
||||
(walk/keywordize-keys)))))))
|
||||
|
||||
#?(:cljs
|
||||
(defn get-cm-instance
|
||||
[^js target]
|
||||
(when target
|
||||
(when-let [node (rec-get-node target "ls-code-editor-wrap")]
|
||||
(some-> node (.querySelector ".CodeMirror") (.-CodeMirror))))))
|
||||
|
||||
Reference in New Issue
Block a user