mostafaznv / nova-ckeditor

CkEditor 5 Field for Laravel Nova with Media & Snippet Browsers
https://mostafaznv.gitbook.io/nova-ckeditor/
MIT License
51 stars 21 forks source link

Can't display in Laravel8 #60

Closed KenHuangisGood closed 1 year ago

KenHuangisGood commented 1 year ago

When I complete Installation That can't display 001

This is my code

use Mostafaznv\NovaCkEditor\CkEditor;

public function fields(NovaRequest $request)
    {
        return [
            ID::make('id', 'announcement_id')
                ->sortable(),

            BelongsTo::make('announcement_types', 'announcement_types', AnnouncementType::class)
                ->rules('required'),

            Text::make('announcement_title', 'announcement_title')
                ->rules('required', 'max:255', 'min:1'),

            CkEditor::make('announcement_content', 'announcement_content')->stacked(),

            Boolean::make('announcement_is_top', 'announcement_is_top')
                ->default(false),

            Boolean::make('announcement_is_published', 'announcement_is_published')
                ->default(true),

        ];
    }

My Version:

I'm wondering if I'm doing something wrong.

mostafaznv commented 1 year ago

Hi @KenHuangisGood, Please open the "Inspect Element" in your browser and let me know if there are any errors in the Console tab.

KenHuangisGood commented 1 year ago

Sorry, This error is the same as Laravel Nova 4 support

截圖 2023-06-29 下午3 10 53

But I see Requirements show that can work at Laravel 8.40.* or higher

mostafaznv commented 1 year ago

Yes, early versions of Nova CKEditor should work with Laravel 8.40.*. I'm currently working on fixing this issue.

KenHuangisGood commented 1 year ago

Thank you for your answer.

mostafaznv commented 1 year ago

It took me a lot of time and effort, but in the end, I have made nova-ckeditor compatible with Laravel 8 and Nova 4. I hope this update will be helpful to many others. But if you want to experience the latest features of this package, I suggest upgrading to Laravel 10.

Please update the package to v1.1.0. For more information, please refer to the documentation.

Please try it and let me know the result.

KenHuangisGood commented 1 year ago

After some preliminary testing, it seems can currently run on Laravel 8 and Nova 4. Thank you very much. However, it seems that the breakpoints in the code have not been turned off.

截圖 2023-07-06 上午10 29 10

mostafaznv commented 1 year ago

You're welcome. Regarding debug breakpoints, I performed a fresh install of Laravel 8 and NovaCkeditor 1.1.0, and everything worked perfectly. As far as I remember and know, there are no breakpoints in this package (because I don't use them at all :D).

KenHuangisGood commented 1 year ago

Okay, maybe I accidentally set it up :\ .