-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Im having a weird behavior #116
Comments
I don't see anything wrong. Did you solve it? |
interesting, having the same problem; @delacruzjames how did you solve it? |
@delacruzjames This problem is a little strange, and the reason is because you're activating the plugin twice. The origin: https://github.com/Nerian/bootstrap-wysihtml5-rails/blob/master/lib/bootstrap-wysihtml5-rails/simple_form/wysihtml5_input.rb |
@thotmx already did it the output is the same. |
@delacruzjames |
The problem occurs when Turbolink is enabled in your application. Sometimes turbolinks fires a javascript call twice. I'm yet to solve this issue myself, but atleast we can pinpoint the issue for the time being. |
Please check if i missed something. thanks in advance
add
gem 'bootstrap-wysihtml5-rails'
to Gemfile*= require bootstrap-wysihtml5
to ../application.css.scss//= require bootstrap-wysihtml5
to ../application.js4
$(document).ready(function(){
$('.wysihtml5').each(function(i, elem) {
$(elem).wysihtml5();
});
})
5,
<%= f.input :content, as: :wysihtml5 %>
and im having something like this
http://gyazo.com/60be773da04ab721db2dbbf92856d69a
The text was updated successfully, but these errors were encountered: