Nerian / bootstrap-wysihtml5-rails

WYSIWYG editor for Bootstrap, integrated in Rails assets pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bootstrap 3 Compatibility

AlJohri opened this issue · comments

Any chance you can use jspiro's fork of bootstrap-wysihtml5 for BS3 support?

Here is the pull request: jhollingworth/bootstrap-wysihtml5#279 (comment)

And the actual repo: https://github.com/artillery/bootstrap-wysihtml5

Version 0.3.1.23 no work with Bootstrap 3

stylesheet_link_tag 'bootstrap-wysihtml5/b3'

no work

commented

Agreed with @web2developer. My Rails4 app says it can't find the asset when I add '/b3' at the end.

In aplication.css:

/*
 *
 *= require_self
 *= require_tree .
 *= require bootstrap-wysihtml5
 *= require bootstrap-wysihtml5/b3
*/

@import "bootstrap";

Or, if you want to use stylesheet_link_tag:

<%= stylesheet_link_tag 'bootstrap-wysihtml5/core-b3' %>

Notice the different name. The first one is an asset pipeline manifest file:

https://github.com/Nerian/bootstrap-wysihtml5-rails/blob/master/vendor/assets/stylesheets/bootstrap-wysihtml5/b3.css

The second one is the actual css file:

https://github.com/Nerian/bootstrap-wysihtml5-rails/blob/master/vendor/assets/stylesheets/bootstrap-wysihtml5/core-b3.css

Hence when you did stylesheet_link_tag 'bootstrap-wysihtml5/b3' you would just get an empty file, since all the contents are commented out (manifest file style).