From 02d307ce1b66bf2ecce110430016ba726a9bdb95 Mon Sep 17 00:00:00 2001 From: Jure <juretriglav@gmail.com> Date: Thu, 24 Oct 2019 17:58:19 -0400 Subject: [PATCH] Update wax-prosemirror-core/src/Wax.js --- wax-prosemirror-core/src/Wax.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wax-prosemirror-core/src/Wax.js b/wax-prosemirror-core/src/Wax.js index c9846ead4..eb4584c46 100644 --- a/wax-prosemirror-core/src/Wax.js +++ b/wax-prosemirror-core/src/Wax.js @@ -45,15 +45,16 @@ class Wax extends Component { const editorContent = value ? value : ""; - defaultPlugins.push( - ...[placeholder({ content: this.props.placeholder }), WaxKeys, WaxRules] - ); - - if (plugins) defaultPlugins.push(...plugins); + const finalPlugins = defaultPlugins.concat([ + placeholder({ content: this.props.placeholder }), + WaxKeys, + WaxRules + ]); + if (plugins) finalPlugins.push(...plugins); this.WaxOptions = { schema, - plugins: defaultPlugins + plugins: finalPlugins }; const parse = parser(schema); -- GitLab