LaravelRUS / SleepingOwlAdmin

🦉 Administrative interface builder for Laravel (Laravel admin)
http://sleepingowladmin.ru/
MIT License
805 stars 217 forks source link

SleepingOwl Framework]: ReferenceError: CKEDITOR is not defined #1269

Closed 7ammer closed 3 years ago

7ammer commented 3 years ago

en

Version in Composer.json

"laravelrus/sleepingowl": "^8.27",

Steps to reproduce

  1. go to sleeping_owl.php
  2. add the below to the file
    'wysiwyg'     => [
        'default'   => 'ckeditor', // not ckeditor5
        'ckeditor'  => ['height' => 300]
    ...
  3. add AdminFormElement::wysiwyg('my_field', 'my field')

What is expected?

  1. ckeditor loads

What is actually happening?

  1. ckeditor is not loading. Console log outputs the below...
    [SleepingOwl Framework]: ReferenceError: CKEDITOR is not defined  - admin-app.js:2 
    textareaId = my_field

Any advise on what's gone wrong would be helpful. Many thanks.

7ammer commented 3 years ago

I had to add this snippet to AppServiceProvider.php PackageManager::add('ckeditor')->js('ckeditor', asset('/packages/sleepingowl/ckeditor/ckeditor.js'));

I'm not sure if this is a bug. It was not mentioned anywhere in the docs.