© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
49 replies
mile4841

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)
 Repeater::make('contents')
                    ->relationship('contents', modifyQueryUsing: fn ($query) => $query->where('language', 'en'))
                    ->schema([
                      RichEditor::make('description')
                    ])
                    ->addable(false)
                    ->deletable(false)
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

how to set the value of an input inside of a repeater?
FilamentFFilament / ❓┊help
13mo ago
How to get value of other TextEntry inside RepeatableEntry?
FilamentFFilament / ❓┊help
2y ago
richeditor not send value to db
FilamentFFilament / ❓┊help
3y ago
Set value of key-value field
FilamentFFilament / ❓┊help
3y ago