-
-
Save songjiz/76a22191433f01ab987b9c0853da92e6 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
Trix.config.textAttributes.red = { | |
style: { backgroundColor: "red" } | |
} | |
element.editor.activateAttribute("red") | |
// See available attribute options in: | |
// https://github.com/basecamp/trix/blob/master/src/trix/config/text_attributes.coffee | |
// https://github.com/basecamp/trix/blob/master/src/trix/config/block_attributes.coffee |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment