diff --git a/lib/components/TinyMCE.js b/lib/components/TinyMCE.js index cf397de..dcbce37 100644 --- a/lib/components/TinyMCE.js +++ b/lib/components/TinyMCE.js @@ -1,6 +1,7 @@ import React from 'react'; import { findDOMNode } from 'react-dom'; import isEqual from 'lodash/lang/isEqual'; +import clone from 'lodash/lang/clone'; import uuid from '../helpers/uuid'; import ucFirst from '../helpers/ucFirst'; @@ -48,7 +49,8 @@ const TinyMCE = React.createClass({ }, componentDidMount() { - this._init(this.props.config); + const config = clone(this.props.config); + this._init(config); }, componentWillReceiveProps(nextProps) {