You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this package in my laravel project.
When I go to this link: http://1.1.1.1:8000/admin/pages/1/editor then the editor loads, but with a blank page. I getting an error in the console tab: The defination for plugin 'gjs-plugin-ckeditor' not found. I haven't changed anything in the config.
Page model:
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Dotlogics\Grapesjs\App\Traits\EditableTrait;
use Dotlogics\Grapesjs\App\Contracts\Editable;
class Page extends Model implements Editable
{
use HasFactory, EditableTrait;
protected $fillable = ['title', 'content', 'author', 'permalink', 'password', 'status'];
protected $casts = [
'password' => 'boolean',
];
}
I added use EditorTrait;and the editor method into the PageController :
public function editor(Request $request, Page $page)
{
return $this->show_gjs_editor($request, $page);
}
And the route is Route::get('pages/{page}/editor', [BackendPageController::class, 'editor']);
And I can't save what I doing in the editor because I get a 403 error if I click on the save button.
I'm trying to use this package in my laravel project.
When I go to this link: http://1.1.1.1:8000/admin/pages/1/editor then the editor loads, but with a blank page. I getting an error in the console tab: The defination for plugin 'gjs-plugin-ckeditor' not found. I haven't changed anything in the config.
Page model:
I added
use EditorTrait;
and the editor method into the PageController :And the route is
Route::get('pages/{page}/editor', [BackendPageController::class, 'editor']);
And I can't save what I doing in the editor because I get a 403 error if I click on the save button.
http://1.1.1.1:8000/laravel-grapesjs/App-Models-Page/1 403 (Forbidden)
You can see everything in the picture:
The text was updated successfully, but these errors were encountered: