Fix rest parameters

This commit is contained in:
Sauli Anto
2019-10-03 12:43:46 +03:00
parent b7ccab38ff
commit 6ea1c38e24
3 changed files with 8 additions and 19 deletions

View File

@@ -59,10 +59,7 @@ export default class MathUI extends Plugin {
const editor = this.editor;
const mathCommand = editor.commands.get( 'math' );
const mathConfig = {
...defaultConfig,
...this.editor.config.get( 'math' )
};
const mathConfig = Object.assign( defaultConfig, this.editor.config.get( 'math' ) );
const formView = new MainFormView( editor.locale, mathConfig.engine, mathConfig.enablePreview );