Skip to content

Commit

Permalink
add trix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed May 23, 2024
1 parent 3387636 commit a783cbb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/3.0/fields/trix.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
version: '1.0'
license: community
demo: https://trix.avodemo.com/
---

# Trix
Expand Down Expand Up @@ -92,3 +93,15 @@ field :body, as: :trix, attachments_disabled: true
## Remove attachment attributes

By default, Trix will add some meta-data in the editor (filename, filesize, and URL) when adding an attachment. You might not need those to be present in the document. You can hide them using `hide_attachment_filename`, `hide_attachment_filesize`, and `hide_attachment_url`.

## Active Storage

Trix integrates seamlessly with Active Storage. When you use it with a plain database column on a record table (not with Action Text) you have to set the `attachment_key` option (documented above).

## Action Text

Trix integrates seamlessly with Action Text. It will automatically work with Action Text as well and it won't require you to add an `attachment_key`.

## Demo app

We prepared a [demo](https://trix.avodemo.com/) to showcase Trix's abilities to work with Action Text and Active Storage.

0 comments on commit a783cbb

Please sign in to comment.