mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
improve(plguin): apis about insertion related with cursor state & more types
This commit is contained in:
@@ -39,7 +39,11 @@ const editor: Partial<IEditorProxy> = {
|
||||
debug('Register slash command #', this.baseInfo.id, tag, actions)
|
||||
|
||||
if (typeof actions === 'function') {
|
||||
actions = [['editor/clear-current-slash'], ['editor/hook', actions]]
|
||||
actions = [
|
||||
['editor/clear-current-slash', false],
|
||||
['editor/restore-saved-cursor'],
|
||||
['editor/hook', actions]
|
||||
]
|
||||
}
|
||||
|
||||
actions = actions.map((it) => {
|
||||
|
||||
Reference in New Issue
Block a user