mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-18 04:57:49 +08:00
24 lines
365 B
TypeScript
24 lines
365 B
TypeScript
import Vue from 'vue'
|
|
|
|
export const NodeViewContent = Vue.extend({
|
|
props: {
|
|
as: {
|
|
type: String,
|
|
default: 'div',
|
|
},
|
|
},
|
|
|
|
render(createElement) {
|
|
return createElement(
|
|
this.as, {
|
|
style: {
|
|
whiteSpace: 'pre-wrap',
|
|
},
|
|
attrs: {
|
|
'data-node-view-content': '',
|
|
},
|
|
},
|
|
)
|
|
},
|
|
})
|