feat(block-embed): Support mod+e to copy block embed to current block (#5584)

* support mod+e to copy block embed

* fix incorrect notification popup

* fix notification wrap styling

* remove extra files

* fix yarn.lock

* update yarn lock

* fix comments
This commit is contained in:
sawhney17
2022-06-07 23:57:46 +04:00
committed by GitHub
parent bea5296d36
commit a2cfdfdf73
3 changed files with 25 additions and 11 deletions

View File

@@ -145,6 +145,8 @@
:editor/replace-block-reference-at-point {:binding "mod+shift+r"
:fn editor-handler/replace-block-reference-with-content-at-point}
:editor/copy-embed {:binding "mod+e"
:fn editor-handler/copy-current-block-embed}
:editor/paste-text-in-one-block-at-point {:binding "mod+shift+v"
:fn editor-handler/paste-text-in-one-block-at-point}
@@ -447,6 +449,7 @@
:editor/forward-kill-word
:editor/backward-kill-word
:editor/replace-block-reference-at-point
:editor/copy-embed
:editor/paste-text-in-one-block-at-point
:editor/insert-youtube-timestamp])
(with-meta {:before m/enable-when-editing-mode!}))
@@ -609,6 +612,7 @@
:editor/forward-kill-word
:editor/backward-kill-word
:editor/replace-block-reference-at-point
:editor/copy-embed
:editor/paste-text-in-one-block-at-point
:editor/select-up
:editor/select-down]