Height

height

ArgumentTypeRequiredDefault

pixels

int

This method allows you to specify the desired height of the editor, providing control over the visual display of the CKEditor field. The method accepts a single argument, pixels, which allows you to set the height of the editor in pixels.

use Mostafaznv\NovaCkEditor\CkEditor;

class Article extends Resource
{
    public function fields(Request $request): array
    {
        return [
            CkEditor::make(trans('Content'), 'content')
                ->height(500)
        ];
    }
}

Last updated