samedi 28 novembre 2015

Laravel summernote HTML output

I'm using Laravel 5 and Summernote editor, with some issues. I have a page where I can write an article and then save it which works fine. But when i try to edit the article, I get the html code in the textarea instead of getting the formatted content.

in add-article.blade.php:

{!! Form::textarea('body','',['name'=>'body','id'=>'body','class' => 'form-control']) !!}

in edit-article.blade.php:

{!! Form::textarea('body',$article->body,['name'=>'body','id'=>'body','class' => 'form-control']) !!}



via Chebli Mohamed

4 commentaires: