wip
This commit is contained in:
Peng Xiao
2022-04-29 23:46:52 +08:00
parent 77a4facbc7
commit 97120441db
112 changed files with 43159 additions and 101 deletions

View File

@@ -821,6 +821,7 @@
([edit-input-id content block cursor-range]
(set-editing! edit-input-id content block cursor-range true))
([edit-input-id content block cursor-range move-cursor?]
(println "set-editing!")
(when (and edit-input-id block
(or
(publishing-enable-editing?)
@@ -854,6 +855,7 @@
(defn clear-edit!
[]
(println "clear-edit!")
(swap! state merge {:editor/editing? nil
:editor/block nil
:cursor-range nil