mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-25 18:27:49 +08:00
15 lines
248 B
TypeScript
15 lines
248 B
TypeScript
|
import { Node } from '@tiptap/core'
|
||
|
|
||
|
export default class Paragraph extends Node {
|
||
|
|
||
|
name = 'paragraph'
|
||
|
|
||
|
schema = {
|
||
|
content: 'inline*',
|
||
|
group: 'block',
|
||
|
draggable: false,
|
||
|
parseDOM: [{ tag: 'p' }],
|
||
|
toDOM: () => ['p', 0],
|
||
|
}
|
||
|
|
||
|
}
|