Commit 02d307ce authored by Jure's avatar Jure

Update wax-prosemirror-core/src/Wax.js

parent c0b322d5
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment