Commit 342b78d0 authored by chris's avatar chris

fix if not plugins passed

parent 211fe28e
......@@ -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
......
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