31 lines
897 B
PHP
Executable File
31 lines
897 B
PHP
Executable File
<div class="{{$viewClass['form-group']}}">
|
|
|
|
<label class="{{$viewClass['label']}} control-label">{!! $label !!}</label>
|
|
|
|
<div class="{{$viewClass['field']}}">
|
|
|
|
@include('admin::form.error')
|
|
|
|
<textarea class="form-control {{$class}}" name="{{$name}}" placeholder="{{ $placeholder }}" {!! $attributes !!} >{{ $value }}</textarea>
|
|
|
|
@include('admin::form.help-block')
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script require="@tinymce" init="{!! $selector !!}">
|
|
var opts = {!! admin_javascript_json($options) !!};
|
|
|
|
opts.selector = '#'+id;
|
|
|
|
if (! opts.init_instance_callback) {
|
|
opts.init_instance_callback = function (editor) {
|
|
editor.on('Change', function(e) {
|
|
$this.val(String(e.target.getContent()).replace('<p><br data-mce-bogus="1"></p>', '').replace('<p><br></p>', ''));
|
|
});
|
|
}
|
|
}
|
|
|
|
tinymce.init(opts)
|
|
</script>
|