tiptap/packages/tiptap-extension-paragraph/index.ts
Philipp Kühn 42853fc583 rename
2020-03-27 22:04:02 +01:00

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],
}
}