How do I refresh TinyMCE for the code that I add with JavaScript

Posted by Sam Kong on Stack Overflow See other posts from Stack Overflow or by Sam Kong
Published on 2010-04-21T04:25:34Z Indexed on 2010/04/21 4:33 UTC
Read the original article Hit count: 329

Filed under:
|

Hi,

I need to insert code for flash to TinyMCE with JavaScript. If I insert the same code using HTML menu of TinyMCE, it automatically add flash icon to the editor. But if I insert the code using JavaScript, the actual code is inserted but it shows nothing on the screen.

One trick I found is toggle TinyMCE to normal textarea and back to TinyMCE. Then, it shows the flash icon. Is there a better way to do that?

Thanks.

Sam

© Stack Overflow or respective owner

Related posts about tinymce

Related posts about JavaScript