Skip to content
Snippets Groups Projects
Commit 342b78d0 authored by chris's avatar chris
Browse files

fix if not plugins passed

parent 211fe28e
No related branches found
No related tags found
1 merge request!15Develop
......@@ -43,9 +43,11 @@ class Wax extends Component {
const editorContent = value ? value : "";
defaultPlugins.push(
...[placeholder({ content: this.props.placeholder }), ...plugins, keys]
...[placeholder({ content: this.props.placeholder }), keys]
);
if (plugins) defaultPlugins.push(...plugins);
this.WaxOptions = {
schema,
plugins: defaultPlugins
......
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