enhance: remove tag from editor after auto-complete

pull/11055/head
Tienson Qin 2024-03-18 19:55:54 +08:00
parent 15ac9b3bf8
commit 04907b1b3b
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@
(when class? (when class?
(add-tag (state/get-current-repo) (:block/uuid edit-block) tag {:tag-entity tag-entity})))))) (add-tag (state/get-current-repo) (:block/uuid edit-block) tag {:tag-entity tag-entity}))))))
(editor-handler/insert-command! id (editor-handler/insert-command! id
(str "#" wrapped-tag) (if class? "" (str "#" wrapped-tag))
format format
{:last-pattern last-pattern {:last-pattern last-pattern
:end-pattern (when wrapped? page-ref/right-brackets) :end-pattern (when wrapped? page-ref/right-brackets)