Richeditor v4, set default height
Hi
I am wondering if there is a good way to set the defualt height (rows) of a richeditor in v4?
I tried doing which works, but only the first line is clickable/focusable - so its a bit confusing for the user.
Solution:Jump to solution
RichEditor::make('description')
->json()
->extraAttributes(['class' => 'custom-rich-editor'])
...7 Replies
Perhaps a bit difficult to see from the video, but only the first line is clickable

Use the ->toolbarButtons() and ->maxHeight() or customize the editor content area directly via CSS targeting, not the outer wrapper. Unfortunately, Filament v4 does not expose a built-in rows or height option on the RichEditor, so we need to extend it a bit.
Solution
RichEditor::make('description')
->json()
->extraAttributes(['class' => 'custom-rich-editor'])
.custom-rich-editor .ProseMirror {
min-height: 18em;
}
Thanks! That works 🙂
Would be cool if V4 had a method for min-height
yes
I came from the future to say that from version 4.0.5 onwards you can do it like this: