Last active
December 16, 2018 22:13
-
-
Save huhn511/57083e43e63f52859b87d0c53c0af55a to your computer and use it in GitHub Desktop.
administrate trix editor field views app/views/fields/trix_field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="field-unit__label"> | |
<%= f.label field.attribute %> | |
</div> | |
<div class="field-unit__field"> | |
<%= f.hidden_field field.attribute, id: field.attribute %> | |
<trix-editor input="<%= field.attribute %>"></trix-editor> | |
</div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= truncate field.to_s %> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= sanitize field.to_s %> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment