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 {
|
export default class History extends Extension {
|
||||||
|
|
||||||
name = 'history'
|
name = 'history'
|
||||||
|
|
||||||
defaultOptions() {
|
constructor(options: HistoryOptions) {
|
||||||
|
super(options)
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultOptions(): HistoryOptions {
|
||||||
return {
|
return {
|
||||||
historyPluginOptions: {},
|
historyPluginOptions: {},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user