F
Filamentβ€’17mo ago
ericmp #2

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 packages
11 Replies
ericmp #2
ericmp #2OPβ€’17mo ago
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:
ERROR Command "filament:assets" is not defined. Did you mean one of these?

⇂ filament:check-translations
⇂ filament:upgrade
ERROR Command "filament:assets" is not defined. Did you mean one of these?

⇂ filament:check-translations
⇂ filament:upgrade
MohamedSabil83
MohamedSabil83β€’17mo ago
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 3
ericmp #2
ericmp #2OPβ€’17mo ago
i 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",
ericmp #2
ericmp #2OPβ€’17mo ago
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
MohamedSabil83
MohamedSabil83β€’17mo ago
I see, you're use it outside admin. Be sure that your layout has @stack('scripts') before closing </body>. Inside admin, its auto-registered
ericmp #2
ericmp #2OPβ€’17mo ago
omg, 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 assets
MohamedSabil83
MohamedSabil83β€’17mo ago
Glad to hear that πŸ‘πŸ½
ericmp #2
ericmp #2OPβ€’17mo ago
but if i dont publish them, then doesnt work
MohamedSabil83
MohamedSabil83β€’17mo ago
In v1 but that's changed in v2
ericmp #2
ericmp #2OPβ€’17mo ago
okay, then ill git ignore it for now i think. hope i can upgrade soon thanks for the help! πŸ™
MohamedSabil83
MohamedSabil83β€’17mo ago
You're welcome. Enjoy
Want results from more Discord servers?
Add your server