x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="p-8 max-w-xl"> <div class="midwest-rich-text midwest-form-group type-rich-text"> <div class="midwest-form-group__top"> <label class="midwest-label " for="summary-cf08"> Summary </label> </div> <input type="hidden" name="summary" id="trix_input_2" autocomplete="off" /><trix-editor id="summary-cf08" placeholder="Write a summary…" data-midwest-rich-text-target="editor" data-direct-upload-url="https://midwest.unabridged-staging.com/rails/active_storage/direct_uploads" data-blob-url-template="https://midwest.unabridged-staging.com/rails/active_storage/blobs/redirect/:signed_id/:filename" input="trix_input_2" class="trix-content"></trix-editor> <div class="midwest-form-group__bottom "> <span class="midwest-label description"> A short overview shown at the top of the page. Formatting is supported. </span> </div> </div></div>1
2
3
4
5
6
7
8
<div class="p-8 max-w-xl"> <%= midwest_form_rich_text( name: 'summary', label: 'Summary', description: 'A short overview shown at the top of the page. Formatting is supported.', placeholder: 'Write a summary…' ) %></div>With Description
A helper description renders beneath the editor.
No params configured.
No assets to display.
Add a .js or .css file alongside the component to see it here.
Figma embed for Rich Text/with_description
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."