Skip to content
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

editor not showing #117

Closed
ninjonxb opened this issue Apr 17, 2015 · 2 comments
Closed

editor not showing #117

ninjonxb opened this issue Apr 17, 2015 · 2 comments

Comments

@ninjonxb
Copy link

I probably missed something obvious but i can't get the editor to show up

application.css.scss:

/*
 *= require bootstrap-wysihtml5 
 */

// "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables"
@import "bootstrap-sprockets";
@import "bootstrap";

application.js:

//= require bootstrap-sprockets
//= require bootstrap-wysihtml5
//= require bootstrap-wysihtml5/locales

the form:

<%= simple_form_for @userguide do |f| %>
  <%= f.input :guide, :as => :text, input_html: { class: 'wysihtml5' } %>
  <%= f.button :submit %>
<% end %>

All I get is a plan text box.

@Nerian
Copy link
Owner

Nerian commented Apr 17, 2015

Hi,

You are missing this part: https://github.com/Nerian/bootstrap-wysihtml5-rails#using-bootstrap-wysihtml5-rails-directly

You have added the class 'wysihtml5' to the input, but you are not initializing wysihtml5 anywhere.

@ninjonxb
Copy link
Author

There we go. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants