How to dynamically adding and removing TinyMCE 4 editor
We have share How to dynamically adding and removing TinyMCE 4 editor.First configure TinyMCE editor.
Step 1: Following line add in HTML page
Step 2: Then add textarea in html page
Step 3: and then add js code
As of TinyMCE 4 the methods to remove and reinitialize an instance:
To add editor to a textarea
var editorID = 'mceEditorID'; tinymce.EditorManager.execCommand('mceAddEditor', false, editorID);
To remove editor from a textarea
var editorID = 'mceEditorID'; tinyMCE.EditorManager.execCommand('mceFocus', false, editorID); tinyMCE.EditorManager.execCommand('mceRemoveEditor', true, editorID);