feat: remove props destructuring EditorToolbar
This commit is contained in:
parent
fb449d7b29
commit
516f507ac4
@ -341,9 +341,7 @@ import type {Editor} from '@tiptap/vue-3'
|
|||||||
import BaseButton from '@/components/base/BaseButton.vue'
|
import BaseButton from '@/components/base/BaseButton.vue'
|
||||||
import {setLinkInEditor} from '@/components/input/editor/setLinkInEditor'
|
import {setLinkInEditor} from '@/components/input/editor/setLinkInEditor'
|
||||||
|
|
||||||
const {
|
const props = defineProps<{
|
||||||
editor = null,
|
|
||||||
} = defineProps<{
|
|
||||||
editor: Editor,
|
editor: Editor,
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
@ -356,7 +354,7 @@ function toggleTableMode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setLink(event) {
|
function setLink(event) {
|
||||||
setLinkInEditor(event.target.getBoundingClientRect(), editor)
|
setLinkInEditor(event.target.getBoundingClientRect(), props.editor)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user