sleeping-owl / admin

Administrative interface builder for Laravel
http://sleeping-owl.github.io/
MIT License
504 stars 259 forks source link

textarea editor issue #286

Open eugenem opened 8 years ago

eugenem commented 8 years ago

There an issue with textarea form control. It doesn't encode html entities, so it's not possible to enter and the content. I've tried to use escaped value and it seems to work fine (replace {!$value!} by {{$value}}): views/default/formitem/textarea.blade.php:3

<textarea class="form-control" rows="{{ $rows }}" name="{{ $name }}" @if(isset($readonly))readonly="{{ $readonly }}"@endif>{{$value}}</textarea>

Can this be bad idea somehow? I've used chunk of HTML code as a content and it looks fine in the editor and in the DB afterwards.