Got the error Field type [editor] does not exist. when trying to use editor field at the form.
I use the following code from the official specification:
$form = new Form(new Page);
$form->editor('content');
I've found the solution - editor and map field types are blocked by default in the package. Here is the code from the App\Admin\bootstrap.php:
Encore\Admin\Form::forget(['map', 'editor']);
I have removed editor from array but still getting the same error.
Looks like it's been removed from the core field registration. Adding the following inside App\Admin\bootstrap.php (above the forget method) fixed for me.
Encore\Admin\Form::extend('editor', Encore\Admin\Form\Field\Editor::class);
Most helpful comment
Looks like it's been removed from the core field registration. Adding the following inside App\Admin\bootstrap.php (above the forget method) fixed for me.
Encore\Admin\Form::extend('editor', Encore\Admin\Form\Field\Editor::class);