only copy-as/export level<N blocks for text export

This commit is contained in:
rcmerci
2023-03-13 16:54:36 +08:00
committed by Tienson Qin
parent 2ca70373af
commit 5efbd125de
5 changed files with 68 additions and 7 deletions

View File

@@ -227,6 +227,8 @@
"dashes")
:copy/export-block-text-remove-options (or (storage/get :copy/export-block-text-remove-options)
#{})
:copy/export-block-text-other-options (or (storage/get :copy/export-block-text-other-options)
{})
:date-picker/date nil
:youtube/players {}
@@ -1756,6 +1758,13 @@ Similar to re-frame subscriptions"
(storage/set :copy/export-block-text-remove-options
(get-export-block-text-remove-options))))
(defn get-export-block-text-other-options []
(:copy/export-block-text-other-options @state))
(defn update-export-block-text-other-options!
[k v]
(update-state! :copy/export-block-text-other-options #(assoc % k v)))
(defn set-editor-args!
[args]
(set-state! :editor/args args))