We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e77a5 commit cffc4cdCopy full SHA for cffc4cd
src/custom-extensions/extension-image-upload/imagePlaceholder.ts
@@ -1,5 +1,8 @@
1
+import type { Component } from 'vue'
2
+
3
import { Node, nodeInputRule } from '@tiptap/core'
4
import { VueNodeViewRenderer } from '@tiptap/vue-3'
5
6
import ImagePlaceholderComponent from './ImagePlaceholder.vue'
7
8
export interface ImagePlaceholderOptions {
@@ -48,8 +51,7 @@ export const ImagePlaceholder = Node.create<ImagePlaceholderOptions>({
48
51
},
49
52
50
53
addNodeView() {
- const imagePlaceholderComponent = new ImagePlaceholderComponent()
- return VueNodeViewRenderer(imagePlaceholderComponent)
54
+ return VueNodeViewRenderer(ImagePlaceholderComponent as Component)
55
56
57
addInputRules() {
0 commit comments