Rich editor not working inside Livewire component

I'm simply following the instructions on this page: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component But MarkdownEditor and RichEditor don't work on my Livewire components. What do you think I'm missing?
18 Replies
awcodes
awcodes4mo ago
Did you use $this->form->fill() in your mount method.?
mokhosh
mokhosh4mo ago
Yes I tried both doing the instructions step by step, and just simply using the make:livewire-form command which should generate everything for you.
awcodes
awcodes4mo ago
Are you seeing any console errors? Are you using panels or the stand alone form’s pancake
mokhosh
mokhosh4mo ago
I might be wrong but I feel like it has to do with ax-load not working. No errors in the console, but I started writing richEditor... in the console and didn't get completion, that's why I think the lib is not properly loaded. I'm using the whole filament package, but this is inside a simple livewire component, not a panel
awcodes
awcodes4mo ago
What isn’t working about them?
mokhosh
mokhosh4mo ago
i just see a toolbar, no body, and the toolbar doesn't respond either and when i submit, the value is null obv
awcodes
awcodes4mo ago
Then I would expect there to be console errors in the dev tools.
mokhosh
mokhosh4mo ago
Yup, that's strange. I'm creating a reproduction repo.
awcodes
awcodes4mo ago
If you can share some code it might not be needed. I would think that if either of those had bugs it would have been reported already.
mokhosh
mokhosh4mo ago
Ye I'm sure im missing something, but i just followed the docs
mokhosh
mokhosh4mo ago
GitHub
GitHub - mokhosh/filament-form-in-livewire: temp reproduction repo
temp reproduction repo. Contribute to mokhosh/filament-form-in-livewire development by creating an account on GitHub.
mokhosh
mokhosh4mo ago
just created a new laravel app, required filament, used the documentation command, and added rich editor, that's all the component is rendered on the welcome page i did steps in single commits so you can track if necessary
awcodes
awcodes4mo ago
Looks like you installed the full filament suite but you are trying to use it as standalone. So, since you aren’t using the panels you are missing the necessary directives to load the styles and scripts in your welcome view.
awcodes
awcodes4mo ago
Or use the panels.
mokhosh
mokhosh4mo ago
Thanks so much, that fixed the unresponsiveness. Two questions however, 1. The input has some style issues, like I have the focus outline on it which isn't there in the panel forms 2. Shouldn't this be added to the "Adding forms to livewire components" page in the docs? i resolved 1
awcodes
awcodes4mo ago
It’s all under the installation guide for each individual package. But since you installed the full suite all of those steps are handled by the theme install command. But since you are using them standalone you have to follow those package docs. Minus the composer require part since you already installed them all.
mokhosh
mokhosh4mo ago
That's what I'm saying 😄 All this is not super clear. I think we can make it more clear in the "adding forms to a livewire component" page, that if you're using it this way, you need to take additional steps. Thank you very much for taking the time and answering anyway. Really appreciate it.
Want results from more Discord servers?
Add your server
More Posts
Very odd behaviour with calling a function but modal opens instead.Very odd behaviour is happening. I have a form over top of a table. In the form I have a datetime pCan't get extraModalFooterActions to workHi. I can't seem to get `->extraModalFooterActions` working. When I use `Filament\Forms\Components\AApp-like feelingHello, I have only used Laravel so far to build APIs. Now I was recommended Filament and after watchExport on widget table with filtering not workingHello, According to this tuto https://filamentphp.com/docs/3.x/panels/dashboard#filtering-widget-datHow to change the display column on the attach dropdown?Good afternoon, folks, how are you? Let me ask you a question here. How do I customize which field How to limit checkbox mouse clicks only on the checkbox and not the label as well?I have a specific use case when I need to be able to copy some parts of the label for each of the chHow to change the breadcrumbs' uppercasing of each word on a listing/edit/create page?I have tried: ``` protected static ?string $navigationLabel = 'Cars users like'; ``` and ``` proteImportAction job is failing but there is no error messageI have simple table with dozens of fields. Nothing special. I want to import records with Filament ICan I customize css in `app.css` or am I required to create a custom theme?Just wondering what the `app.css` file is even for if not customizations?FileUpload - Products x ProductsImagesI'm working on a Laravel project where each product can have multiple associated images. I have two