mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 23:25:05 +00:00
feat: toggle formatting of selected area instead of double-wrapping
enhance: select formatted text after changing its formatting for toggle support fix: place cursor between (pattern)(pattern) pair when selection is empty
This commit is contained in:
@@ -58,6 +58,9 @@
|
||||
(= (count (.-value input))
|
||||
(.-selectionStart input))))
|
||||
|
||||
(defn set-selection-to [input n m]
|
||||
(.setSelectionRange input n m))
|
||||
|
||||
(defn move-cursor-to [input n]
|
||||
(.setSelectionRange input n n))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user