1
0

feat: remove props destructuring EditorToolbar

This commit is contained in:
Dominik Pschenitschni 2024-06-26 11:59:17 +02:00 committed by konrad
parent fb449d7b29
commit 516f507ac4

View File

@ -341,9 +341,7 @@ import type {Editor} from '@tiptap/vue-3'
import BaseButton from '@/components/base/BaseButton.vue'
import {setLinkInEditor} from '@/components/input/editor/setLinkInEditor'
const {
editor = null,
} = defineProps<{
const props = defineProps<{
editor: Editor,
}>()
@ -356,7 +354,7 @@ function toggleTableMode() {
}
function setLink(event) {
setLinkInEditor(event.target.getBoundingClientRect(), editor)
setLinkInEditor(event.target.getBoundingClientRect(), props.editor)
}
</script>