From 211e1934a6f7c1adb590b229b23fb80493990818 Mon Sep 17 00:00:00 2001 From: Adam Obuchowicz Date: Thu, 7 Nov 2024 16:00:47 +0100 Subject: [PATCH 01/15] Pasting? --- app/gui/src/project-view/bindings.ts | 1 + .../components/DocumentationEditor.vue | 64 +++++++++++++++++-- .../components/MarkdownEditor.vue | 13 +++- .../MarkdownEditor/MarkdownEditorImpl.vue | 9 +++ .../src/project-view/stores/project/index.ts | 9 +++ app/gui/src/project-view/util/toast.ts | 25 +++++++- 6 files changed, 113 insertions(+), 8 deletions(-) diff --git a/app/gui/src/project-view/bindings.ts b/app/gui/src/project-view/bindings.ts index 210094aeb62c..63c00ee04498 100644 --- a/app/gui/src/project-view/bindings.ts +++ b/app/gui/src/project-view/bindings.ts @@ -12,6 +12,7 @@ export const codeEditorBindings = defineKeybinds('code-editor', { export const documentationEditorBindings = defineKeybinds('documentation-editor', { toggle: ['Mod+D'], openLink: ['Mod+PointerMain'], + pasteImage: ['Mod+V'], }) export const interactionBindings = defineKeybinds('current-interaction', { diff --git a/app/gui/src/project-view/components/DocumentationEditor.vue b/app/gui/src/project-view/components/DocumentationEditor.vue index fc19d6b70888..81a850c81533 100644 --- a/app/gui/src/project-view/components/DocumentationEditor.vue +++ b/app/gui/src/project-view/components/DocumentationEditor.vue @@ -1,4 +1,5 @@