mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
refactoring
This commit is contained in:
parent
f6a20d2b6e
commit
223512a536
@ -63,7 +63,7 @@ export default class ExtensionManager {
|
||||
}
|
||||
|
||||
get commands(): RawCommands {
|
||||
return this.extensions.reduce((extensions, extension) => {
|
||||
return this.extensions.reduce((commands, extension) => {
|
||||
const context = {
|
||||
options: extension.options,
|
||||
editor: this.editor,
|
||||
@ -71,7 +71,7 @@ export default class ExtensionManager {
|
||||
}
|
||||
|
||||
return {
|
||||
...extensions,
|
||||
...commands,
|
||||
...extension.config.addCommands.bind(context)(),
|
||||
}
|
||||
}, {} as RawCommands)
|
||||
|
Loading…
Reference in New Issue
Block a user