mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 12:39:03 +08:00
fix setting extension options
This commit is contained in:
parent
32ab14293f
commit
143dba421c
@ -31,7 +31,10 @@ export default class ExtensionManager {
|
||||
this.extensions.forEach(extension => {
|
||||
const { editor } = this
|
||||
const { name } = extension.config
|
||||
const options = deepmerge(extension.config.defaults, extension.options)
|
||||
const options = {
|
||||
...extension.config.defaults,
|
||||
...extension.options,
|
||||
}
|
||||
const type = extension.type === 'node'
|
||||
? editor.schema.nodes[name]
|
||||
: editor.schema.marks[name]
|
||||
|
Loading…
Reference in New Issue
Block a user