add extension class
This commit is contained in:
27
packages/tiptap-core/src/Node.ts
Normal file
27
packages/tiptap-core/src/Node.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import Extension from './Extension'
|
||||
|
||||
export default class Node extends Extension {
|
||||
|
||||
constructor(options = {}) {
|
||||
super(options)
|
||||
}
|
||||
|
||||
// protected type = 'node'
|
||||
|
||||
get type() {
|
||||
return 'node'
|
||||
}
|
||||
|
||||
get view(): any {
|
||||
return null
|
||||
}
|
||||
|
||||
get schema(): any {
|
||||
return null
|
||||
}
|
||||
|
||||
command() {
|
||||
return () => {}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user