Days
Hours
Minutes
Seconds
x

New Froala Editor v5.0.0 is here โ€“ Learn More

Skip to content
Froala Documentation

Save Concepts

Save inside FORM

To store the content of the editor on the server side save the content inside a FORM. Initialize the editor on a textarea inside a form, then send the content to the server as value of textarea.

Initialize the editor

<form action="save" method="POST">
  <textarea name="editor_content" id="myEditor"></textarea>
  <button>Submit</button>
</form>

<script>
  new FroalaEditor('#myEditor', {toolbarInline: false})
</script>

Receive request on the server

The FORM sends the content in the editor_content parameter of the request (which is the name of the textarea), the server processes the request and saves the data in the DB.

PHP example: For the code above you would get the rich text editor's content in $_POST['editor_content'] variable.

Do you think we can improve this article? Let us know.

Sign up

Download the code by signing up for our newsletter

Sign up

Download the code by signing up for our newsletter

Note: By registering, you confirm that you agree to the processing of your personal data by Froala, Inc. - Froala as described in the Privacy Statement. Froala, Inc. - Froala is part of the Idera group and may share your information with its parent company Idera, Inc., and its affiliates. For further details on how your data is used, stored, and shared, please review our Privacy Statement.