Unable to use TinyEditor
\Mohamedsabil83\FilamentFormsTinyeditor\Components\TinyEditor::make('text')
im trying to use it in a form. im not using admin panel
https://github.com/mohamedsabil83/filament-forms-tinyeditor
i've already read the docs, i have installed composer v1.7.5 cuz my filament is v2
i dont have installed admin panel, i use the forms and tables packages11 Replies
in a part of the docs it says:
- After installing the package, you don't have to do anything if you have Filament installed. If not, and you want to use it with Forms standalone, run the following command:
php artisan filament:assets
but i run
php artisan filament:assets
and i get:
You follow the docs of v2 which related to Filament v3. You have to read the docs of branch 1.x
The
filament:assets
is a new command in Filament 3i followed both docs, cant make it to work. if i inspect the page, the tinyeditor is there, but i cant see it displayed
i installed this one -
"mohamedsabil83/filament-forms-tinyeditor": "1.7.5",
btw @mohamedsabil83 the tinyeditor plugin integration, is really cool (:
i tried to publish the assets (
php artisan vendor:publish --tag="filament-forms-tinyeditor-assets" --force
), also did npm run build
and php artisan optimize:clear
I see, you're use it outside admin. Be sure that your layout has
@stack('scripts')
before closing </body>
. Inside admin, its auto-registeredomg, it works!!!
so in my layout i had it like this:
@stack('js')
now i added @stack('scripts')
too
btw, is it mandatory to publish the assets to make it work?
i ask it cuz i wont really change the assetsGlad to hear that ππ½
but if i dont publish them, then doesnt work
In v1 but that's changed in v2
okay, then ill git ignore it for now i think. hope i can upgrade soon
thanks for the help! π
You're welcome. Enjoy