emit autocomplete text

This commit is contained in:
2023-05-01 14:26:13 +02:00
parent 9fea397f55
commit 8e7b6d13af
3 changed files with 26 additions and 2 deletions

View File

@@ -59,6 +59,10 @@ const handleClick = ({ data }: { data: any }) => {
const note = getNoteByTitle(noteTitle)
if (note) activeNote.value = note
}
const handleAutocomplete = (event: any) => {
console.log(event.data)
}
</script>
<template>
<div>
@@ -68,6 +72,7 @@ const handleClick = ({ data }: { data: any }) => {
v-model="editorData"
:config="editorConfig"
@click="handleClick"
@contexted-link-autocomplete="handleAutocomplete"
></CKEditor>
</div>
</template>