I'm having a difficult time making TinyMCE work after it has been removed from the document and then re-inserted. I've created this TinyMCE Fiddle to demonstrate the issue: https://fiddle.tiny.cloud/F8iaab/3 .
To see the issue:
The final step is based on other discussions I've found on this topic (references below).
Any ideas how I can make a TinyMCE instance usable after being reinserted into a document?
Refs:
Seems to work if you remove the tinymce instance when removing content.
function removeContent() {
container.parentNode.removeChild(container);
var editor = tinymce.get('content');
if (editor) {
editor.remove();
}
}