{"repo":"tonysm/rich-text-laravel","free":true,"listed":false,"github":"https://github.com/tonysm/rich-text-laravel","clone":"git clone https://github.com/tonysm/rich-text-laravel.git","description":"Integrates the Trix Editor with Laravel. Inspired by the Action Text gem from Rails.","language":"PHP","stars":468,"topics":["hacktoberfest","laravel","trix"],"license":"MIT","category":"security-tools","readme_excerpt":"Integrates rich text editors like Trix and Lexxy with Laravel. Inspired by the Action Text gem from Rails. Table of Contents - Installation - Overview - The RichText Model - Encrypted Rich Text Attributes - Storing Rich Text as a Model Attribute - Image Upload - Content Attachments - The Content Object - Plain Text Rendering - Markdown Rendering - Sanitization - SGID - Livewire - Custom Editors - Testing - Changelog - Contributing - Security Vulnerabilities - Credits - License Installation You can install the package via composer: Then, you may install it running: Next, you may run the migration: Ensure the styles Blade component were added to your layouts: Alternatively, if you're using DaisyUI, you may prefer the tweaked theme: Finally, you may now use the input Blade component on your forms like so: This will automatically render the correct editor based on your configured RICH TEXT EDITOR setting. You can also use the editor-specific components directly: If you want to customize the editor components, you may publish the views: That's it! Overview We extract attachments before saving the rich text field in the database and minimize the content for storage. This works with any supported editor (Trix, Lexxy, or your own custom editor). Attachments are replaced with rich-text-attachment tags. Attachments from attachable models have a sgid attribute, which should globally identify them in your app. When storing images directly (say, for a simple image uploading where you don'","default_branch":null,"files":null,"tree":[],"storefront":"/r/tonysm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tonysm/rich-text-laravel/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."}