tiptap/packages/extension-paragraph/index.ts
2020-09-24 00:29:05 +02:00

14 lines
308 B
TypeScript

import { Node } from '@tiptap/core'
// import ParagraphComponent from './paragraph.vue'
export default new Node()
.name('paragraph')
.schema(() => ({
content: 'inline*',
group: 'block',
parseDOM: [{ tag: 'p' }],
toDOM: () => ['p', 0],
// toVue: ParagraphComponent,
}))
.create()