diff --git a/ka-note/VERSION b/ka-note/VERSION index 024b8c7..e452463 100644 --- a/ka-note/VERSION +++ b/ka-note/VERSION @@ -1 +1 @@ -1.1.78 \ No newline at end of file +1.1.79 \ No newline at end of file diff --git a/ka-note/client/src/lib/components/MarkdownEditor.svelte b/ka-note/client/src/lib/components/MarkdownEditor.svelte index 13dd4c5..e51f4b0 100644 --- a/ka-note/client/src/lib/components/MarkdownEditor.svelte +++ b/ka-note/client/src/lib/components/MarkdownEditor.svelte @@ -98,7 +98,14 @@ TableHeader, BubbleMenu.configure({ element: bubbleMenuEl, - shouldShow: ({ editor: e, from, to }) => from !== to && !e.isActive('image'), + tippyOptions: { duration: 100 }, + shouldShow: ({ editor: e, from, to, view }) => { + if (!view.hasFocus()) return false; + if (from === to) return false; + if (e.isActive('image')) return false; + const { empty } = e.state.selection; + return !empty; + }, }), ], content: initialContent, diff --git a/ka-note/server/ka-note.db-shm b/ka-note/server/ka-note.db-shm index a0ad9f0..6adaed6 100644 Binary files a/ka-note/server/ka-note.db-shm and b/ka-note/server/ka-note.db-shm differ