Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not getting post value of textarea when using TinyMCE

Im using TinyMCE here is my code :-

 tinyMCE.init({
    // General options
    mode : "textareas",
    theme : "advanced"
}); 

and here is my html code:-

<textarea name="terms" id="elm1"  rows="15" cols="30" width="100%" ></textarea>

the problem is that im not getting a post value of this textarea when im doing something like this :-

print_r($_POST['terms']);
like image 531
Rakesh Shetty Avatar asked Jun 14 '12 14:06

Rakesh Shetty


1 Answers

Looks like you need to call tinymce.triggerSave() right before you submit your form.

like image 103
Thariama Avatar answered Sep 20 '22 01:09

Thariama