@php Assets::addScriptsDirectly(config('core.base.general.editor.ckeditor.js'))->addScriptsDirectly('vendor/core/core/base/js/editor.js'); if (BaseHelper::getRichEditor() == 'ckeditor' && App::getLocale() != 'en') { Assets::addScriptsDirectly(sprintf('https://cdn.ckeditor.com/ckeditor5/40.0.0/classic/translations/%s.js', App::getLocale())); } // Check if this should start as textarea $startAsTextarea = Arr::get($attributes, 'data-start-as-textarea', false); if ($startAsTextarea) { $attributes['class'] = Arr::get($attributes, 'class', '') . ' form-control ays-ignore'; $attributes['style'] = 'display: block;'; } else { $attributes['class'] = Arr::get($attributes, 'class', '') . ' form-control editor-ckeditor ays-ignore'; } $attributes['id'] = Arr::get($attributes, 'id', $name); $attributes['rows'] = Arr::get($attributes, 'rows', 4); @endphp {!! Form::textarea($name, BaseHelper::cleanEditorContent($value), $attributes) !!}