add history option interface
This commit is contained in:
@@ -14,11 +14,19 @@ declare module '@tiptap/core/src/Editor' {
|
||||
}
|
||||
}
|
||||
|
||||
interface HistoryOptions {
|
||||
historyPluginOptions?: Object,
|
||||
}
|
||||
|
||||
export default class History extends Extension {
|
||||
|
||||
name = 'history'
|
||||
|
||||
defaultOptions() {
|
||||
constructor(options: HistoryOptions) {
|
||||
super(options)
|
||||
}
|
||||
|
||||
defaultOptions(): HistoryOptions {
|
||||
return {
|
||||
historyPluginOptions: {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user