itsterry PRO said almost 2 years ago on Adding Custom Buttons to Action Text :
Hi Dave

This is a great tutorial: thank you!

I'd love to see how you'd go about adding table functionality to Trix. It's something that many people have been looking for without success over the past few years (https://github.com/basecamp/trix/issues/539). 

I've tried looking at it myself (the Trix homepage at Github is useful), but my JavaScript skills aren't all they should be!

T

David Kimura PRO said almost 2 years ago on Adding Custom Buttons to Action Text :
I think my main issue with tables on WYSIWYG editors is that they are easy to create but become very difficult to manage. For example, you create a 2x3 table, but later want to add an additional column.

brian PRO said almost 2 years ago on Adding Custom Buttons to Action Text :
This is great, I was looking at adding more heading options as well as colour's.

How would you go about removing the default heading option, that comes with Trix?




David Kimura PRO said almost 2 years ago on Adding Custom Buttons to Action Text :

  , I would hide the button with something like


trix-toolbar .trix-button--icon-heading-1 { display: none; }

Simon Moro PRO said almost 2 years ago on Adding Custom Buttons to Action Text :
This is great, thank you! I have been looking into how to do this. I've found it easy to add alignment and sizing. However, is there a flag to make Trix auto remove a previously set value. For example, when I choose another color, they are both selected. I imagine it's a simple flag I'm missing? Perhaps in the Trix.config.textAttributes setup? Essentially, looking for a replace method rather than adding the value to the style attribute.

Thanks!

Login to Comment