riodwanto / filament-ace-editor

Ace Editor implementation for Filament 3 Form
https://github.com/riodwanto/filament-ace-editor
MIT License
15 stars 2 forks source link

How to set a custom value of the AceEditor Field? #3

Closed touqeershafi closed 5 months ago

touqeershafi commented 6 months ago

I'm using the following code to make the AceEditor However its not rendering the value of the field.

$form->schema([
            Tabs::make("container")->tabs([
                Tab::make("name")->schema([
                    AceEditor::make("name")->hiddenLabel()
         ]),
     ])
]);

Below is the screenshot. image

Laravel: 10x riodwanto/filament-ace-editor: 1.0

riodwanto commented 6 months ago

Hi @touqeershafi

Your code is fine. Just make sure the name u define has value. u can add this formatStateUsing(fn ($state) => dd($state)) to dump value.