This package is a fork from waynestate/nova-ckeditor4-field extended with translation functionalities for dimsav/laravel-translatable. The translation functionalities are inspired from yeswedev/nova-translatable.
You can install the package into a Laravel application that uses Nova via composer:
composer require Charl13/nova-ckeditor4-field
For documentation refer to the original package waynestate/nova-ckeditor4-field.
Additionally this field can be translated:
<?php
namespace App\Nova;
use Waynestate\Nova\CKEditor;
class Article extends Resource
{
// ...
public function fields(Request $request)
{
return [
// ...
CKEditor::make('Body', 'body')->locales([
'en' => 'English',
'de' => 'German',
]);
// ...
];
}
}