[BREAKING CHANGE] change the default document type to doc

This commit is contained in:
Hans Pagel
2021-01-28 11:58:10 +01:00
parent a885669929
commit 62f42a229f
10 changed files with 11 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
import { Node } from '@tiptap/core'
export const Document = Node.create({
name: 'document',
name: 'doc',
topNode: true,
content: 'block+',
})

View File

@@ -6,7 +6,7 @@ import Text from '@tiptap/extension-text'
// eslint-disable-next-line
const html = generateHTML({
type: 'document',
type: 'doc',
content: [{
type: 'paragraph',
attrs: {