We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have this code, to show the content of a uploaded file.
public function form(Form $form): Form { return $form->schema([ FileUpload::make('html-file') ->label('Upload HTML File') ->acceptedFileTypes(['text/html']) ->afterStateUpdated(function (Set $set, $get, TemporaryUploadedFile $state) { $filePath = $state->getRealPath(); $htmlContent = file_get_contents($filePath); $set('html', $htmlContent); dump($htmlContent); dump($get('html)); }), CodeEditor::make('html') ->label('Code Editor') ->hint('Hier kannst du HTML Code eingeben.') ->minHeight() ->showCopyButton() ->darkModeTheme('basic-dark') ->lightModeTheme('basic-light') ->live() ])->statePath('data'); }
Unfortunately, the new state in the filament is not rendered. The state is set, but the code editor remains empty.
How to fill the editor?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have this code, to show the content of a uploaded file.
Unfortunately, the new state in the filament is not rendered. The state is set, but the code editor remains empty.
How to fill the editor?
The text was updated successfully, but these errors were encountered: