mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-19 13:47:51 +08:00
14 lines
308 B
TypeScript
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()
|