remove node view from image extension
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
import { Command, createNode, nodeInputRule } from '@tiptap/core'
|
import { Command, createNode, nodeInputRule } from '@tiptap/core'
|
||||||
import { VueRenderer } from '@tiptap/vue'
|
|
||||||
import Vue from 'vue'
|
|
||||||
|
|
||||||
export const inputRegex = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/
|
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
|
export default Image
|
||||||
|
|||||||
Reference in New Issue
Block a user