amaelftah / laravel-trix

Configurable Basecamp Trix Editor (WYSIWYG) delivered to your laravel application
MIT License
526 stars 53 forks source link

Add method to show field #79

Closed diogogomeswww closed 7 months ago

diogogomeswww commented 1 year ago

This PR will add a trixRender($field) to the HasTrixRichText trait.

This will make it easier to render the content of a field, without the trix editor, when we just want to show the content and not edit it.

This is a direct implementation of this suggestion: https://github.com/amaelftah/laravel-trix/issues/28#issuecomment-596494447