TinyMCE pick up and set value

3

How do I get and set the value of the TinyMCE plugin ?

tinymce is a textarea plugin with several options is a text box format, when I say take the value I mean what was formatted by the user eg a bold text with size 16 and etc.

    
asked by anonymous 14.02.2014 / 17:25

2 answers

0
tinyMCE.get('mensagem').getContent();  /* Pegar valor tinyMCE */

tinymce.get('mensagem').setContent('');  /* Popular campos e limpar campos */ 
    
14.02.2014 / 17:26
2
tinyMCE.get('seuid').getContent();  /* get */

tinymce.get('seuid').setContent('');  /* set */ 
    
14.02.2014 / 17:39