add historyPluginOptions

This commit is contained in:
Philipp Kühn
2020-04-13 14:03:39 +02:00
parent 925215367d
commit 186654df5f
2 changed files with 12 additions and 3 deletions

View File

@@ -18,6 +18,12 @@ export default class History extends Extension {
name = 'history'
defaultOptions() {
return {
historyPluginOptions: {},
}
}
commands(): CommandSpec {
return {
undo: (next, { view }) => {
@@ -41,7 +47,7 @@ export default class History extends Extension {
plugins() {
return [
history()
history(this.options.historyPluginOptions)
]
}