> For the complete documentation index, see [llms.txt](https://mostafaznv.gitbook.io/nova-ckeditor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mostafaznv.gitbook.io/nova-ckeditor/basic-usage/usage.md).

# Usage

Add the <mark style="color:red;">CkEditor</mark> field to your resource by using the `CkEditor::make()` method within the `fields()` method. This enables a rich content editing experience for your users.

```php
<?php

namespace App\Nova\Resources;

use App\Models\Article as ArticleModel;
use Mostafaznv\NovaCkEditor\CkEditor;

class Article extends Resource
{
    public static string $model = ArticleModel::class;
    

    public function fields(NovaRequest $request): array
    {
        return [
            ID::make()->sortable(),
            Text::make(trans('Title'), 'title')->rules('required', 'max:255'),
            
            CkEditor::make(trans('Content'), 'content')->stacked(),
        ];
    }
}
```
