mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-22 16:17:50 +08:00
13 lines
307 B
TypeScript
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() |