mostafaznv / nova-ckeditor

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

Ckeditor javascript assignment error #66

Closed vikramparihar closed 1 year ago

vikramparihar commented 1 year ago

Hi,

I am using you pluigin in my lastest laravel nova. and while using ckeditor library getting this error in console:

Uncaught SyntaxError: Invalid left-hand side in assignment (at field-ckeditor:2:215746)

Using Field like: new Panel('Rich Content', [ CkEditor::make('Content', 'content')->stacked() ->rules('require')->hideFromIndex(), ]),

My Composer.json is like:

"require": { "php": "^7.3|^8.0", "artesaos/seotools": "^0.20.2", "cviebrock/eloquent-sluggable": "^8.0", "cyrildewit/eloquent-viewable": "^7.0", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^7.4", "intervention/image": "^2.7", "laravel/framework": "^8.65", "laravel/nova": "^4.0", "laravel/sanctum": "^2.11", "laravel/telescope": "^4.15", "laravel/tinker": "^2.5", "laravel/ui": "^3.4", "livewire/livewire": "^2.7", "mostafaznv/nova-ckeditor": "^1.1", "renatomarinho/laravel-page-speed": "^2.1", "studio-42/elfinder": "^2.1"

mostafaznv commented 1 year ago

Hi. You are using an old version. Have you tried the latest one (5.2.0)?

vikramparihar commented 1 year ago

I have installed via command composer require mostafaznv/nova-ckeditor and its installing "mostafaznv/nova-ckeditor": "^1.1", by default

If i update the version manually an error is comming like: Problem 1

mostafaznv commented 1 year ago

Oops. You are using an old Laravel version as well. The latest version you can install is v1.1.0.

Keep in mind that this version works with:

If you are using versions below that, please consider updating your composer.json file with these versions and updating dependencies using composer update.

Related to: #60

vikramparihar commented 1 year ago

Could you please show me what should be the exact version of " mostafaznv/nova-ckeditor " based on my composer.json

mostafaznv commented 1 year ago

Something like this should work:

"require": {
    "php": "^7.3|^8.0",
    "fruitcake/laravel-cors": "^2.0",
    "guzzlehttp/guzzle": "^7.0.1",
    "laravel/framework": "^8.75",
    "laravel/nova": "^4.26",
    "laravel/sanctum": "^2.11",
    "laravel/tinker": "^2.5",
    "mostafaznv/nova-ckeditor": "^1.1"
}
mostafaznv commented 1 year ago

If this has solved your problem, please consider closing the issue.

vikramparihar commented 1 year ago

Solved.