afomera / trix

Easily drop the Trix WYSIWYG editor into your Ruby on Rails application.
MIT License
87 stars 29 forks source link

how to extend the toolbar using this gem? #13

Closed gujindv closed 6 years ago

gujindv commented 6 years ago

hi, I'm trying to extend the toolbar with trix editor, like adding a image upload button. Is it possible to customize when using your gem?

kylefox commented 6 years ago

To my knowledge Trix doesn't have an API for (easily) creating extensions/plugins 😕

Your best bet is to refer to the Trix readme to see if it's possible to implement your functionality using the existing APIs.

This gem doesn't do much except output the <trix-editor> tag — so you're able to do anything that'd you're able to do with Trix itself (for example, observing Trix events).