Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap wysiwyg: how to get the formatted text on the server side?

I am learning Bootstrap and would like to have a wysiwyg editor. I found bootstrap-wysiwyg and want to use it.

http://mindmup.github.io/bootstrap-wysiwyg/

However, I cannot figure out how to get formatted text on the server-side when a form is submitted.

like image 362
curious1 Avatar asked Jul 25 '13 04:07

curious1


People also ask

How do I add rich text editor to HTML?

In the Content Type Builder page, add the Rich Text Editor (RTE) field to it. In the Edit Properties section of the RTE field, under Editor Version, select Latest. Under the Editor Type, select Custom, and choose the formatting options you want to include in the RTE field.

Is bootstrap a wysiwyg?

Bootstrap WYSIWYG Editor is a lightweight plugin that enables rich text editing on your website. To start working with sortable plugin see "Getting Started" tab on this page.


1 Answers

<textarea class="textarea" name="mytext" placeholder="Enter text ..." style="width: 810px; height: 200px"></textarea>

use val()

$('.textarea').wysihtml5();

$('.textarea').val();

http://jsfiddle.net/suhailvs/vNPAJ/3/

you can get it as post

request.POST['mytext'] 
like image 50
suhailvs Avatar answered Oct 10 '22 14:10

suhailvs