Here is the problem. On my php submit page, I have a form with several fields, including the text field that TinyMCE currently uses, and I also have the option to duplicate the existing form. The fact is that I canβt edit the second editor, which was duplicated, but the editor appears in the place of textarea. However, I can edit and save the first editor. I'm not sure if his mistake or just something I am wrong? I also tried updating TinyMCE, but did not work. Any idea?
function initTinyMCE() { tinyMCE.init({ mode : "textareas", //mode : "exact", elements : "mytextarea" theme : "simple" }); } initTinyMCE(); $(document).ready( function(){ $('a#addmore').live('click', function(){ //*clone the existing form and inserting form here* initTinyMCE(); }); $('a#toSubmit').live( 'click', function() { tinyMCE.triggerSave(); $('.editwork-form').submit(); }); });
source share