add extension class
This commit is contained in:
23
packages/tiptap-document-extension/index.ts
Normal file
23
packages/tiptap-document-extension/index.ts
Normal 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+',
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user