© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
37 replies
epertinez

RichEditor in v4 not working!

Hi, I have a RichEditor inside a modal from that is fired with an action.

Action::make('envia_factura')
                ->icon('heroicon-m-envelope')
                ->schema([
                    Grid::make(3)->schema([
                        TextInput::make('to')->label('Client')->default($this->correus())->columnSpanFull(),
                        TextInput::make('cc')->label('CC')->default(''),
                        TextInput::make('bcc')->label('BCC')->default('eduardp@bredax.com'),
                    ]),
                    TextInput::make('assumpte')->label('Assumpte')->default($this->assumpte()),
                    RichEditor::make('contingut')
                        ->toolbarButtons([
                            /* 'attachFiles', 'blockquote', */ 'bold', 'bulletList',
                            /* 'codeBlock', */ 'h2', 'h3', 'italic', 'link', 'orderedList',
                            'redo', 'strike', 'undo',
                        ])
                        ->label('Missatge')
                        ->required()
                        ->default(self::cosMissatge()),
                ])
Action::make('envia_factura')
                ->icon('heroicon-m-envelope')
                ->schema([
                    Grid::make(3)->schema([
                        TextInput::make('to')->label('Client')->default($this->correus())->columnSpanFull(),
                        TextInput::make('cc')->label('CC')->default(''),
                        TextInput::make('bcc')->label('BCC')->default('eduardp@bredax.com'),
                    ]),
                    TextInput::make('assumpte')->label('Assumpte')->default($this->assumpte()),
                    RichEditor::make('contingut')
                        ->toolbarButtons([
                            /* 'attachFiles', 'blockquote', */ 'bold', 'bulletList',
                            /* 'codeBlock', */ 'h2', 'h3', 'italic', 'link', 'orderedList',
                            'redo', 'strike', 'undo',
                        ])
                        ->label('Missatge')
                        ->required()
                        ->default(self::cosMissatge()),
                ])

For some reason default text is not shown and the text editor is unresponsive. Browser console says:

Uncaught (in promise) SyntaxError: invalid assignment left-hand side in rich-editor.js:9:18723:

So I guess that once the error is fired, the text editor do not work any longer.

Don't know were should I submit this problem.
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

RichEditor not working after update to Filament V4
FilamentFFilament / ❓┊help
5mo ago
v4 testing RichEditor inside form
FilamentFFilament / ❓┊help
7mo ago
Richeditor v4, set default height
FilamentFFilament / ❓┊help
8mo ago
Disabled not working on RichEditor
FilamentFFilament / ❓┊help
3y ago