Commit ce66063e authored by Christos's avatar Christos

Merge branch 'jure-master-patch-78363' into 'master'

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

See merge request !28
parents c0b322d5 02d307ce
......@@ -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