fix setting extension options

This commit is contained in:
Philipp Kühn 2020-09-24 22:47:32 +02:00
parent 32ab14293f
commit 143dba421c

View File

@ -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]