mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
Merge branch 'master' into feat/integrated-title-bar
This commit is contained in:
@@ -105,6 +105,8 @@
|
||||
|
||||
:config {}
|
||||
:block/component-editing-mode? false
|
||||
:editor/op nil
|
||||
:editor/latest-op nil
|
||||
:editor/hidden-editors #{} ;; page names
|
||||
:editor/draw-mode? false
|
||||
:editor/action nil
|
||||
@@ -123,6 +125,9 @@
|
||||
:editor/on-paste? false
|
||||
:editor/last-key-code nil
|
||||
|
||||
;; Stores deleted refed blocks, indexed by repo
|
||||
:editor/last-replace-ref-content-tx nil
|
||||
|
||||
;; for audio record
|
||||
:editor/record-status "NONE"
|
||||
|
||||
@@ -1694,13 +1699,18 @@ Similar to re-frame subscriptions"
|
||||
|
||||
;; TODO: Move those to the uni `state`
|
||||
|
||||
(defonce editor-op (atom nil))
|
||||
(defn set-editor-op!
|
||||
[value]
|
||||
(reset! editor-op value))
|
||||
(set-state! :editor/op value)
|
||||
(when value (set-state! :editor/latest-op value)))
|
||||
|
||||
(defn get-editor-op
|
||||
[]
|
||||
@editor-op)
|
||||
(:editor/op @state))
|
||||
|
||||
(defn get-editor-latest-op
|
||||
[]
|
||||
(:editor/latest-op @state))
|
||||
|
||||
(defn get-events-chan
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user