Skip to content Skip to sidebar Skip to footer

How Do You Get The Content From Tinymce When The Form Is Posted?

This is how my form looks like: because 'textareas' is the name of the textarea.

The function tinyMCE.activeEditor.getContent() is client side, so you can get the content while you are on the page (before the submit).

Anyway as Amila said, you should add the method="post" to your form.

Solution 2:

add form method as post

<formmethod="post"action="" >

now you can get the textarea value by $_POST['textareas'];

Solution 3:

yes by using post method you will get the value of your input element and for the tinyMice the name of the element to which you have created the instance of the tinyMice in your case it's textares

Post a Comment for "How Do You Get The Content From Tinymce When The Form Is Posted?"