{{-- CKeditor --}} @php $field['extra_plugins'] = isset($field['extra_plugins']) ? implode(',', $field['extra_plugins']) : ""; $defaultOptions = [ "language" => app()->getLocale(), "filebrowserBrowseUrl" => backpack_url('elfinder/ckeditor'), "extraPlugins" => $field['extra_plugins'], "embed_provider" => "//ckeditor.iframe.ly/api/oembed?url={url}&callback={callback}", ]; $field['options'] = array_merge($defaultOptions, $field['options'] ?? []); @endphp @include('crud::fields.inc.wrapper_start') @include('crud::fields.inc.translatable_icon') {{-- HINT --}} @if (isset($field['hint']))

{!! $field['hint'] !!}

@endif @include('crud::fields.inc.wrapper_end') {{-- ########################################## --}} {{-- Extra CSS and JS for this particular field --}} {{-- If a field type is shown multiple times on a form, the CSS and JS will only be loaded once --}} {{-- FIELD JS - will be loaded in the after_scripts section --}} @push('crud_fields_scripts') @if(isset($field['custom_build'])) @foreach($field['custom_build'] as $script) @basset($script) @endforeach @else @basset('https://cdn.ckeditor.com/ckeditor5/36.0.1/classic/ckeditor.js') @bassetBlock('backpack/pro/fields/ckeditor.js') @endBassetBlock @endif @endpush {{-- End of Extra CSS and JS --}} {{-- ########################################## --}}