This commit is contained in:
Philipp Kühn
2020-03-27 22:04:02 +01:00
parent 8b02b6c2c4
commit 42853fc583
18 changed files with 637 additions and 764 deletions

View File

@@ -0,0 +1,15 @@
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],
}
}