replace extensions

This commit is contained in:
Philipp Kühn
2020-09-08 23:44:45 +02:00
parent 678b6444d2
commit 26ecc20a50
16 changed files with 590 additions and 491 deletions

View File

@@ -1,14 +1,8 @@
import { Node } from '@tiptap/core'
import { NodeSpec } from 'prosemirror-model'
export default class Text extends Node {
name = 'text'
schema(): NodeSpec {
return {
group: 'inline',
}
}
}
export default new Node()
.name('text')
.schema(() => ({
group: 'inline',
}))
.create()