JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script src="http://tinymce.com/js/tinymce/jscripts/tiny_mce/jquery.tinymce.js"></script>
<button type="button" id="btnShow">
        shw</button>

JavaScript

$(function ()
        {
            tinyMCE.init({ mode: 'none' });
            $('#btnShow').click(function ()
            {
                var dlgComments = $('<div/>').attr('id', 'dlgInternalComments'),
                txtAreaComments = $('<textarea/>').attr('id', 'txtInternalComments').appendTo(dlgComments);
                dlgComments.dialog({
                    open: function ()
                    {
                        var ddd = { mode: 'none' };
                        
                        txtAreaComments.tinymce(ddd);
                    },
                    close: function ()
                    {

                        removeTinyMCE('txtInternalComments');

                        $(this).dialog('destroy');
                    },
                    buttons: {
                        'Ok': function ()
                        {
                        },
                        'Cancel': function ()
                        {
                            removeTinyMCE('txtInternalComments');
                            $(this).dialog('destroy');
                        }
                    }
                });
            });
            function removeTinyMCE(inst)
            {
                tinyMCE.execCommand('mceFocus', false, inst);
                tinyMCE.execCommand('mceRemoveControl', false, inst);
            }
        });