add extension class

This commit is contained in:
Philipp Kühn
2019-12-16 23:20:05 +01:00
parent 6f1aedb2b2
commit 3b291c3a3c
7 changed files with 129 additions and 9 deletions

View File

@@ -0,0 +1,23 @@
import { Node } from '@tiptap/core'
export default class Document extends Node {
// get name() {
// return 'document'
// }
// get schema() {
// return {
// content: 'block+',
// }
// }
// type = 'nope'
name = 'document'
schema = {
content: 'block+',
}
}