Created
October 19, 2015 19:44
-
-
Save courthead/a344d6520c2c93d21b88 to your computer and use it in GitHub Desktop.
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
Integrating with Forms | |
[ ] hidden input field with id matching <trix-editor>'s input attr | |
Populating wth Stored Content | |
[ ] To populate a <trix-editor> with stored content, include that content in the associated input element’s value attribute. | |
Storing Attached Files | |
[ ] provide Trix with a permanent URL for attached files | |
[ ] to store attachments, listen for the trix-attachment-add event | |
[ ] call preventDefault() on the trix-file-accept event to disallow attachments | |
Styling Formatted Content | |
[ ] To ensure what you see when you edit is what you see when you save, use a CSS class name to scope styles for Trix formatted content. Apply this class name to your <trix-editor> element, and to a containing element when you render stored Trix content for display in your application. | |
Editing Text Programmatically | |
[ ] expose editor property |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment