Trumbowyg2Rails
Rails asset wrapper for Trumbowyg
This is fork of trumbowyg_rails, because that repository has not been updated a lot of time.
Currently tracking code as of this change.
Installation
-
Configure your Gemfile to use this gem:
gem 'trumbowyg2-rails'
-
Require the JavaScript files in
app/assets/javascripts
, after jQuery://= require trumbowyg/trumbowyg
Optional - Include any supported language packs from this list:
//= require trumbowyg/langs/fr
-
Require the Stylesheets in
app/assets/stylesheets
:*= require trumbowyg/trumbowyg
Update Instructions
In order to sync this repository with the upstream provider use the following workflow:
-
Check out latest copy of parent repository
-
Run
npm install
to install Trumbowyg dependencies -
Run
gulp build
to generate the sprite files -
Copy as follows from
Trumbowyg
=>trumbowyg2-rails
/dist/ui/images/* => /vendor/assets/images/trumbowyg/images /src/ui/sass/* => /vendor/assets/stylesheets/trumbowyg /src/trumbowyg.js => /vendor/assets/javascripts/trumbowyg /src/langs/* => /vendor/assets/javascripts/trumbowyg