tiptap/packages/extension-paragraph/index.ts
2020-03-30 10:42:59 +02:00

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