add basic extension classes

This commit is contained in:
Philipp Kühn
2020-10-09 22:59:25 +02:00
parent a4ccb36e10
commit 8324f57528
13 changed files with 421 additions and 266 deletions

View File

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