Enable and Disable Tiny MCE

Utilities, 2015-06-29 22:43:26 UTC
// to disable:
tinyMCE.remove('#article_body');

// to enable:
var ed = new tinyMCE.Editor('article_body', {
                   menubar: false,
                    plugins: [ "autolink link image code table template" ],
                    selector:"#article_body",
                    toolbar1: "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code"
                }, tinyMCE.EditorManager);
ed.render();

Share: