tiptap/packages/tiptap-extension-paragraph/index.ts

15 lines
248 B
TypeScript
Raw Normal View History

2020-03-06 03:30:58 +08:00
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],
}
}