Rakesh Shetty
Rakesh Shetty

Reputation: 4568

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']);

Upvotes: 5

Views: 9045

Answers (1)

Thariama
Thariama

Reputation: 50832

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

Upvotes: 10

Related Questions