How to set value inside of richEditor

Hi i would like to insert a value in richeditor from mine Model, how i can do it for example i want this
RichEditor::make('description')
->value(function(Model $record){
return $record->description;
}),
Solution
Full solution is
 Repeater::make('contents')
                    ->relationship('contents', modifyQueryUsing: fn ($query) => $query->where('language', 'en'))
                    ->schema([
                      RichEditor::make('description')
                    ])
                    ->addable(false)
                    ->deletable(false)
Was this page helpful?