<style type="text/css">
    .ck-editor__editable[role="textbox"]{
        min-height: 420px;
    }
</style>
</style>
<div class="{{$viewClass['form-group']}}">

    <label class="{{$viewClass['label']}} control-label">{{$label}}</label>

    <div class="{{$viewClass['field']}}">

        @include('admin::form.error')

        <textarea name="{{ $name}}" id="editor_{{ $name}}" placeholder="{{ $placeholder }}" {!! $attributes !!} >{!! $value !!}</textarea>

        @include('admin::form.help-block')

    </div>
</div>

<script require="@ckeditor" init="{!! $selector !!}">
    // $this.ckeditor();
    ClassicEditor
        .create( document.querySelector( '#editor_{{ $name}}' ) , {
            language: 'zh-cn',  // 中文,
            ckfinder: {
                uploadUrl: '/admin/dcat-api/tinymce/upload?_token='+Dcat.token,
                options: {
                    resourceType: 'Images',
                },
            }
        })
        .catch( error => {
            console.error( error );
        } );
</script>
