Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

trix

> 编程语言
Open source

Trix Want to include Basecamp's awesome Trix WYSIWYG editor in your Ruby on Rails application? You've come to the right place! Please see t…

177 stars0 likes2 views
WebsiteGitHub

About

Trix Want to include Basecamp's awesome Trix WYSIWYG editor in your Ruby on Rails application? You've come to the right place! Please see t…

Trix

Want to include Basecamp's awesome Trix WYSIWYG editor in your Ruby on Rails application? You've come to the right place!

Please see the appropriate guide for your environment of choice:

  • Ruby on Rails.

a. Ruby on Rails

trix is easy to drop into Rails with the asset pipeline.

In your Gemfile you need to add the trix gem.

ruby
gem 'trix'

bundle install and restart your server to make the files available through the pipeline.

Import Trix styles in app/assets/stylesheets/application.css:

css
*= require trix

Require Trix Javascript magic in app/assets/javascripts/application.js:

javascript
//= require trix

Finally, any place where you would like to use the Trix editor in your forms, just use the trix_editor helper:

ruby
f.trix_editor :body

If you are using the Formtastic gem or the Simple Form gem, you can do this:

ruby
f.input :body, as: :trix_editor

Trix

For the official Trix Github repository, go here.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/maclover7/trix.

Upgrading Trix

  1. Copy and paste Trix's trix.js to vendor/assets/javascripts/trix.js
  2. Copy and paste Trix's trix.css to vendor/assets/stylesheets/trix.css
  3. Update lib/trix/version.rb with the correct version number
  4. git commit -am 'Bump to vVERSION'
  5. bundle exec rake release

License

The gem is available as open source under the terms of the MIT License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言