Rails asset wrapper for Trumbowyg
Currently tracking code as of this change.
-
Configure your Gemfile to use this gem:
gem 'trumbowyg_rails' -
Require the JavaScript files in
app/assets/javascripts, after jQuery://= require trumbowyg/trumbowygOptional - Include any supported language packs from this list:
//= require trumbowyg/langs/fr -
Require the Stylesheets in
app/assets/stylesheets:*= require trumbowyg/trumbowyg
In order to sync this repository with the upstream provider use the following workflow:
-
Check out latest copy of parent repository
-
Run
npm installto install Trumbowyg dependencies -
Run
gulp spritesto generate the sprite files -
Copy as follows from
Trumbowyg=>trumbowyg_rails/dist/ui/images/* => /vendor/assets/images/trumbowyg/images /src/ui/sass/* => /vendor/assets/stylesheets/trumbowyg /src/trumbowyg.js => /vendor/assets/javascripts/trumbowyg /str/langs/* => /vendor/assets/javascripts/trumbowyg