Posted By

tomidle on 01/12/11


wordpress tinymce

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Inserting text in WordPress tinymce

 / Published in: JavaScript

This piece of code allows to insert text into the tinymce textarea when writing a WordPress plugin for instance.

  1. // Just replace TextToAdd by text or html code
  3. tinyMCE.execCommand('mceReplaceContent',false,TextToAdd);

Report this snippet  

You need to login to post a comment.