/ Published in: JavaScript
                    
                                        
This piece of code allows to insert text into the tinymce textarea when writing a WordPress plugin for instance.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// Just replace TextToAdd by text or html code
tinyMCE.execCommand('mceReplaceContent',false,TextToAdd);
Comments
 Subscribe to comments
                    Subscribe to comments
                
                