Topic: TinyMCE causing exceptions when initialized second time in one page
Nov 3, 2009: update below
When I attach an editor to a dynamically created textarea the second time, it doesn't load the contents of the textarea, and causes a bunch of exceptions.
The first time I initialize the editor, everything works perfectly. I can click all the editor buttons, the editor contains the appropriate content, I can retrieve the content from it (using getContent()), and so on.
When I close the modal box that contains the editor, I call various removal & deletion commands in hopes of completely obliterating any occurrence of the editor:
mce.remove(); //mce is the editor tinyMCE.execCommand('mceRemoveControl', true, 'vik-content-field'); //vik-content-field is the id of the textarea it gets attached to delete mce;
I'm guessing none of those fully work, because poop hits the fan the next time I try to "Edit > Contents".
I'm using the latest version of TinyMCE which I downloaded today. I've only been testing in FF 3.5.
Absolutely any insight would be appreciated. I thought I'd move my CMS from FCKEditor to TinyMCE, but it's taken me 3 hours (so far) on this one problem.
Last edited by quasipickle (2009-11-04 06:37:28)