From fa2333a9d1be2bd226083f7d920d25545de0344c Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 15 Jun 2022 10:32:12 +0200 Subject: [PATCH] Replace MenuBubble with menu bar entry for links This replaces the popover MenuBubble used for inserting links with a menu entry in the menu bar, fixing #2392. This also allows to add links also to directories, previously only files were allowed as link targets, fixing #2162. Signed-off-by: Ferdinand Thiessen --- src/components/Editor.vue | 7 +- src/components/Menu/ActionInsertLink.vue | 205 +++++++++++++++++++ src/components/Menu/MenuBar.vue | 2 +- src/components/Menu/entries.js | 48 +++-- src/components/MenuBubble.vue | 246 ----------------------- src/components/icons.js | 6 + src/helpers/files.js | 4 + src/helpers/links.js | 10 +- src/views/RichWorkspace.vue | 2 +- 9 files changed, 255 insertions(+), 275 deletions(-) create mode 100644 src/components/Menu/ActionInsertLink.vue delete mode 100644 src/components/MenuBubble.vue diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 7b350898b4b..25dde5ae8dd 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -48,11 +48,7 @@