x
1
2
3
4
5
6
7
8
9
10
<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="announcement-ce18"> Announcement </label> </div> <input type="hidden" name="announcement" id="trix_input_1" value="<h1>Welcome aboard</h1><div>Here is what is <strong>new</strong> this week:</div><ul><li>Rich text fields</li><li>Restyled Trix toolbar</li></ul>" autocomplete="off" /><trix-editor id="announcement-ce18" 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_1" class="trix-content"></trix-editor> </div></div>1
2
3
4
5
6
7
<div class="p-8 max-w-xl"> <%= midwest_form_rich_text( name: 'announcement', label: 'Announcement', value: '<h1>Welcome aboard</h1><div>Here is what is <strong>new</strong> this week:</div><ul><li>Rich text fields</li><li>Restyled Trix toolbar</li></ul>' ) %></div>With Value
Seed the editor with existing rich text by passing an HTML value:.
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_value
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."