Commit 342b78d0 authored by chris's avatar chris

fix if not plugins passed

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