ActionView::Helpers::FormHelper
rich_textarea
API docs (Rails 8.1.4.1) ↗Alias: rich_text_area
def rich_textarea(object_name, method, options = {}, &block)
Description
Creates an Action Text editor (<trix-editor>) for a model attribute, and a hidden <input> that holds its content.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Interacting with the preview updates the form submission.
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params
This site does not upload images or files. An image pasted into the editor is shown, but its upload never finishes, so Trix does not write it into the hidden
In an app that uses Action Text, the file is uploaded as soon as it is pasted, separately from the form submission.
<input>, and it does not end up in the form data either.In an app that uses Action Text, the file is uploaded as soon as it is pasted, separately from the form submission.