Skip to content
Snippets Groups Projects
Commit 02d307ce authored by Jure's avatar Jure
Browse files

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

parent c0b322d5
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 { ...@@ -45,15 +45,16 @@ class Wax extends Component {
const editorContent = value ? value : ""; const editorContent = value ? value : "";
defaultPlugins.push( const finalPlugins = defaultPlugins.concat([
...[placeholder({ content: this.props.placeholder }), WaxKeys, WaxRules] placeholder({ content: this.props.placeholder }),
); WaxKeys,
WaxRules
if (plugins) defaultPlugins.push(...plugins); ]);
if (plugins) finalPlugins.push(...plugins);
this.WaxOptions = { this.WaxOptions = {
schema, schema,
plugins: defaultPlugins plugins: finalPlugins
}; };
const parse = parser(schema); 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