Closed sergeynilov closed 1 year ago
Same here
You’re not using the textinput from this package, you should import it from this package not from filament itself.
Could you please detalize your answer ? Which code have I to replace ?
@sergeynilov
use Wiebenieuwenhuis\FilamentCharCounter\TextInput;
TextInput::make('text');
Thank you ! After I upgrated wiebenieuwenhuis/filament-char-counterm to ^1.1.3 it works. Can you please make similar functionality for Filament\Forms\Components\RichEditor class ?
I added sweebee/filament-char-counter ^1.1.1 to my filamenphp 2.17.17 app and adding HasCharacterLimit trait I created custom CustomTextInput class :
But no any char counters are visible. I found file vendor/wiebenieuwenhuis/filament-char-counter/src/FilamentCharCounterProvider.php with content :
Opening file vendor/wiebenieuwenhuis/filament-char-counter/resources/dist/css/char-counter.css I see a lot of css code - looks like it must implement char counters functionality but how to assign it to the project? In file config/app.php I added :
and cleared cache.
Also I have
npm run dev
command running...But still no char counters functionality visible : https://prnt.sc/WlIvJe17fuGN
What I see in browser : prnt.sc/nrIx9blrWlLy not sure looks like this php code is not loaded and css is not applied. Does filament/laravel packages has some common way of loading package styles ?