tiptap/packages/tiptap-core/src/Node.ts

28 lines
331 B
TypeScript
Raw Normal View History

2019-12-17 06:20:05 +08:00
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 () => {}
}
}