remove useless nodeview for links
This commit is contained in:
@@ -7,20 +7,6 @@ export default class LinkMark extends Mark {
|
|||||||
return 'link'
|
return 'link'
|
||||||
}
|
}
|
||||||
|
|
||||||
get view() {
|
|
||||||
return {
|
|
||||||
props: ['node'],
|
|
||||||
methods: {
|
|
||||||
onClick() {
|
|
||||||
console.log('click on link')
|
|
||||||
},
|
|
||||||
},
|
|
||||||
template: `
|
|
||||||
<a :href="node.attrs.href" rel="noopener noreferrer nofollow" ref="content" @click="onClick"></a>
|
|
||||||
`,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get schema() {
|
get schema() {
|
||||||
return {
|
return {
|
||||||
attrs: {
|
attrs: {
|
||||||
|
|||||||
Reference in New Issue
Block a user