Closed vlysytsia closed 6 years ago
tinymce.activeEditor.setContent(''); clear TinyMCE content. Hope it help somebody)
@volodymyrl could you explain with code? where did i get tinymce variable?
@cinder92 it's global variable - you can get it by window.tinymce
or const { tinymce } = window;
I have TinyMCE component inside my own component
<TinyMCE content={this.state.text} config={config} onChange={handleChange} />;
and update my component state on handleChange function and after submit form clear test value
But TinyMCE how previous result. Is it possible clear TinyMCE content?
@brentburg