Open mfdefs opened 7 years ago
Because in TinyMCE.js the render method use defaultValue for the content. So my solution is add this function to the TinyMCE class:
componentDidUpdate: function componentDidUpdate(prevProps, prevState) { if(prevProps.content!==this.props.content){ tinymce.EditorManager.get(this.id).setContent(this.props.content); } }
yes please!
Because in TinyMCE.js the render method use defaultValue for the content. So my solution is add this function to the TinyMCE class: