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