{"repo":"amaelftah/laravel-trix","free":true,"listed":false,"github":"https://github.com/amaelftah/laravel-trix","clone":"git clone https://github.com/amaelftah/laravel-trix.git","description":"Configurable Basecamp Trix Editor (WYSIWYG) delivered to your laravel application","language":"PHP","stars":545,"topics":["trix-editor","trix","wysiwyg","laravel","php"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Configurable Basecamp Trix Editor delivered to your laravel application inspired by Rails Action Text Installation Usage [Using @trix($model, $field, $config = [])](#using-@trix($model,-$field,-$config-=-[])) Storing Rich Text Fields Render Trix For Existing Model Storing Attachment Changing Storage Disk Configuration Table Testing Installation You can install the package via composer: Then publish the configurations and migrations: After the migration has been published then run the migrations to create required tables: then add @trixassets directive at the head tag of your html Usage let's assume we have Post model & want to add trix editor. Using @trix($model, $field, $config = []) you can use @trix directive inside any view to render trix editor. Storing Rich Text Fields now lets try to store content rich text field when hitting submit button. first add HasTrixRichText trait to your model then you can easily store any rich text fields by multiple ways: Render Trix For Existing Model there's multiple ways to render trix for already existing model Render Html For Existing Model You can render the html content for already existing model Storing Attachment when uploading a file to trix editor. an ajax request is sent to store attachment action in laravel-trix config file. which uses Laravel Storage and then this action returns url if upload is success according to Basecamp Trix api . the uploaded file will be stored in trix attachments table as pending attachment. once model ","default_branch":null,"files":null,"tree":[],"storefront":"/r/amaelftah","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/amaelftah/laravel-trix/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}