@@ -58,6 +67,7 @@ const editorConfig = {
:editor="editor"
v-model="editorData"
:config="editorConfig"
+ @click="handleClick"
>
@@ -68,4 +78,7 @@ const editorConfig = {
outline: none !important;
box-shadow: none !important;
}
+.ck-content a[data-contexted-link='true'] {
+ @apply cursor-pointer font-semibold text-primary hover:bg-gray-200;
+}
diff --git a/src/composables/useNotes.ts b/src/composables/useNotes.ts
index 4d15645..42fd5c6 100644
--- a/src/composables/useNotes.ts
+++ b/src/composables/useNotes.ts
@@ -4,8 +4,6 @@ import { mdToHtml } from '@/utils/markdown'
import { getAllMatches } from '@/utils/helpers'
import shortid from 'shortid'
-const contextedPrefix = 'c@'
-
const baseNotes = reactive<{ [noteId: string]: BaseNote }>({})
export const notes = computed