loic.lopez loic.lopez - 1 year ago 76
PHP Question

Get text from texteditor with laravel 5

i would like to get the html code of a texteditor.

I use this texteditor http://adminbootstrap.com/wb/right/0.3.0/texteditor.html .

I've a form with the texteditor inside it but when i would like to get the html code with


It doesn't work and whereas I gave a name to the texteditor,

What is going wrong ?

Thanks for reply.

my view code :

<div class="container-fluid half-padding">
<div class="pages pages_dashboard">
<div class="row">
<div class="col-md-12">
<div class="panel panel-warning">
<div class="panel-heading">
<h3 class="panel-title">Contenu de l'actualitée</h3>
<div class="template template_texteditor">
<div class="summernote"></div>


<div class='summernote'></div>

dynamically creating other div and the html code is contained in

<div class='note-editable panel-body' name='texteditor'></div>

texteditor code

Answer Source

You currently have no textarea form field that is being sent back to the server that contains the wanted content.

The simple thing would be to change

 <div class='note-editable panel-body' name='texteditor'></div>


 <textarea class='note-editable panel-body' name='texteditor'></textarea>

or run some javascript on form submit to add this as post['textarea'] from the TEXT of the div content

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download