JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<div id="content">Initial content goes here</div>
CSS
#content {height:200px;width:400px;border: 1px solid;}
JavaScript
$(function () {
tinymce.init({
selector: "#content",
width : 400,
height: 200,
setup : function(ed) {
ed.on('init', function(e) {
e.target.hide();
});
}
});
function showIt() {
tinymce.get('content').show();
};
function hideIt() {
tinymce.get('content').hide();
};
});