improve schema types

This commit is contained in:
Philipp Kühn
2020-03-31 22:57:39 +02:00
parent 208ba890ef
commit c60ad0f107
8 changed files with 19 additions and 19 deletions

View File

@@ -1,10 +1,11 @@
import { Node } from '@tiptap/core'
import { NodeSpec } from 'prosemirror-model'
export default class Paragraph extends Node {
name = 'paragraph'
schema() {
schema(): NodeSpec {
return {
content: 'inline*',
group: 'block',