phplaravelckeditorlaravel-admin

laravel admin, upload image in ckeditor


I am using laravel admin which is installed with "encore/laravel-admin" package: "*",

Next I installed another package "laravel-admin-ext/ckeditor": "*",

It adds a ckeditor form to edit the field in the admin panel itself

His code with all the options that I added looks like this

$form->ckeditor('description', __('Description'))->required()->options(
    [
        'toolbarGroups' => [
            ['name' => 'clipboard', 'groups' => ['clipboard', 'spellchecker', 'source']],
            ['name' => 'undo'],
            ['name' => 'tools', 'groups' => ['tools']],
            ['name' => 'document', 'groups' => ['mode']],
            ['name' => 'maximize'],
            ['name' => 'source'],
            ['name' => 'basicstyles', 'groups' => ['basicstyles', 'cleanup', 'maximize']],
            ['name' => 'colors'],
            ['name' => 'paragraph', 'groups' => ['list', 'indent', 'blocks', 'align', 'bidi']],
            ['name' => 'others', 'groups' => ['others', 'maximize']],
            ['name' => 'about', 'groups' => ['about']],
        ],
        'removeButtons' => '',
    ]
);

The question is, is it possible to include image loading in these options? And where will they be stored?


Solution

  • Remove all the options you have set and you will be able to download files via a link

    $form->ckeditor('description', __('Description'))->required()->options();