mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 19:59:02 +08:00
remove node view from image extension
This commit is contained in:
parent
3e00fadcaa
commit
cf8956bca1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user