How to update TinyMCE for code I add using JavaScript
I need to insert code for flash into TinyMCE with JavaScript. If I paste the same code using the TinyMCE HTML menu, it automatically adds a flash icon to the editor. But if I paste the code using JavaScript, the actual code is inserted, but nothing appears on the screen.
One trick I found is switching TinyMCE to a regular text area and back to TinyMCE. Then the flash icon is displayed. Is there a better way to do this?
Thanks.
Sam
+2
a source to share