views:

276

answers:

1

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

A: 

Have u tried using:mceRepaint ?

http://wiki.moxiecode.com/index.php/TinyMCE:Commands

Luis
I've already tried that and it didn't work. Strange... Thanks for your suggestion, though.
Sam Kong