tiptap/packages/extension-paragraph/index.ts
2020-09-08 23:44:45 +02:00

13 lines
307 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()