diff --git a/webapp/components/Editor/Editor.vue b/webapp/components/Editor/Editor.vue index c0bf3da43..72b95771d 100644 --- a/webapp/components/Editor/Editor.vue +++ b/webapp/components/Editor/Editor.vue @@ -43,7 +43,42 @@ - + + @@ -54,20 +89,21 @@ import linkify from 'linkify-it' import stringHash from 'string-hash' import Fuse from 'fuse.js' import tippy from 'tippy.js' -import { Editor, EditorContent } from 'tiptap' +import { Editor, EditorContent, EditorMenuBubble } from 'tiptap' import EventHandler from './plugins/eventHandler.js' import { History } from 'tiptap-extensions' import Hashtag from './nodes/Hashtag.js' import Mention from './nodes/Mention.js' import { mapGetters } from 'vuex' -import HcMenuBar from './MenuBar' +import MenuBar from './MenuBar' let throttleInputEvent export default { components: { EditorContent, - HcMenuBar, + EditorMenuBubble, + MenuBar, }, props: { users: { type: Array, default: () => null }, // If 'null', than the Mention extention is not assigned. diff --git a/webapp/components/Editor/MenuBar.vue b/webapp/components/Editor/MenuBar.vue index 8156eee9e..d4ff1a673 100644 --- a/webapp/components/Editor/MenuBar.vue +++ b/webapp/components/Editor/MenuBar.vue @@ -1,65 +1,57 @@ @@ -73,6 +65,9 @@ export default { EditorMenuBar, MenuBarButton, }, - props: ['editor'], + props: { + editor: Object, + showLinkMenu: Function, + }, }