fix: paste blocks

This commit is contained in:
Tienson Qin
2022-06-16 03:53:46 +08:00
parent 855491cd27
commit b59d98ada5
5 changed files with 201 additions and 180 deletions

View File

@@ -4,6 +4,7 @@
[frontend.extensions.pdf.utils :as pdf-utils]
[frontend.handler.config :as config-handler]
[frontend.handler.editor :as editor-handler]
[frontend.handler.paste :as paste-handler]
[frontend.handler.history :as history]
[frontend.handler.page :as page-handler]
[frontend.handler.route :as route-handler]
@@ -149,7 +150,7 @@
:fn editor-handler/copy-current-block-embed}
:editor/paste-text-in-one-block-at-point {:binding "mod+shift+v"
:fn (fn [_state e] ((editor-handler/editor-on-paste! nil true) e))}
:fn (fn [_state e] ((paste-handler/editor-on-paste! nil true) e))}
:editor/insert-youtube-timestamp {:binding "mod+shift+y"
:fn commands/insert-youtube-timestamp}