remove node view from image extension

This commit is contained in:
Philipp Kühn 2020-10-30 13:20:27 +01:00
parent 3e00fadcaa
commit cf8956bca1

View File

@ -1,6 +1,4 @@
import { Command, createNode, nodeInputRule } from '@tiptap/core'
import { VueRenderer } from '@tiptap/vue'
import Vue from 'vue'
export const inputRegex = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/
@ -61,14 +59,6 @@ const Image = createNode({
}),
]
},
addNodeView() {
const Component = Vue.extend({
template: '<div>this is a vue component</div>',
})
return VueRenderer(Component)
},
})
export default Image