Skip to content
Snippets Groups Projects
Commit ce66063e authored by Christos's avatar Christos
Browse files

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

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

See merge request !28
parents c0b322d5 02d307ce
No related branches found
No related tags found
1 merge request!28Update 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);
......
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