F
FilamentMauMau

Is it possible to add custom variables for creating contracts in the Rich Editor?

I need to create a contract template where variables such as names, addresses, and personal documents can be inserted into the text using a variable.
No description
P
Patrick198941d ago
ooh use TipTap editor that is a great package that allows you to add "Blocks" you can customize those blocks for each variabl
P
Patrick198941d ago
Filament
Tiptap Editor by Adam Weston - Plugins - Filament
A Tiptap WYSISYG integration for Filament Admin/Forms.
P
Patrick198941d ago
super package Im using it to add livewire components to my content, but you could use it for anything you want
A
awcodes41d ago
If you use the Tiptap editor plugin, the feature you’re looking for is merge tags. No need for a block. It is up to you though to replace the tag in the output html.
P
Patrick198940d ago
^
M
MauMau40d ago
"But I don't want to allow the user to enter the tag manually, as this would significantly increase the error rate due to variables with incorrect names." I will test, my friend, thank you very much
A
awcodes40d ago
They don’t enter the tag manually. You provide a list of tags. Then the user can choose them from the list.
Want results from more Discord servers?
Add your server
More Posts
Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints():Hi guys .. i'm on ContratoResource file wich list contracts. Each contract can have one item createdHow to record the last login (online) time of a user?The user table has created_at and updated_at fields. I want to add a logged_at field. To track whenstruggle with select field =_=i create a Select then for its option i have a model which has this relation: > `public function fiwhat merhod to use in import action: castStateUsing or filstateUsingHi everyone, i have a table with id and name and i want to modify name, while importing, based on a Weird login error after livewire updateAfter `composer update` I can't login to filament. I see the login form but the password field is aReusable sectionsHi, I was wondering how you usually create reusable parts for example e.g. infolists or forms? For efiltersForm()Im using custom livewire page with widget with table. I have defined filter form and $this->filters JS error : "Livewire assets are out of date"Hi guys, I made a few changes on my Filament app and now login isn't working anymore and I think it'It's possible to put the relation on top of form page?I have a big form. After create a record ( with doesn't have the relation fields already ), a user dWork with existing tables without deleting their contents when doing migrationsHi guys, I'd like to work with already existing data in the database. Unfortunately the table is deAction opening an empty state modalI'm using Action in a spatie livewire wizard component. When I click on next button once, the step iBlock Repeater Rating with MorphToMany RelationGreetings, I have a block with this form inside class Rating { public static function make( Ignore using filament:assets for packageI am using this package for inspiration: https://github.com/cheesegrits/filament-google-maps and fouHow to increase Pest test coverageHey, I am attempting to increase my test coverage to 100% for my resources and can't seem to figurHow to put images in a textarea with filament ?I've tried a lot of things but when I insert my images in a textarea, and that I go back to the fronfile uploading to S3 on vapor stuck on uploadingI have set a new server on Laravel Vapor, the S3 was generated by vapor with full public access, theUse filament Components outside filamentCan I use filament components like a table outside filament assuming I have a simple laravel app witDoes --generate flag work when creating a resource?To test it I: 1- Updated filament libs (`composer update`) & cleared cache `php artisan optimize:clMissing New panel resources - links don't appear on sidebar - 404-Not foundHello. I have been developing an app since the beginning of February and everthing was Ok. I have beNested relation formHi guys, is it possible to create form with nested relations? ```php // ClientResource.php Forms\Co