jquery - Struggling to get wysiwyg working in Rails -
trying bootstrap-wysihtml5-rails gem working.
the code (haml):
application.css
*= require_self *= require bootstrap-wysihtml5 *= require_tree . */
application.js
//= require jquery //= require jquery_ujs //= require bootstrap-wysihtml5 //= require bootstrap //= require_tree .
pages.js (the form edit @page)
$(".wysihtml5").each (i, elem) -> $(elem).wysihtml5()
_form.html.haml
= f.text_area :content, class: 'wysihtml5'
checked in dom , script there, can't see editor.
try put id inside textarea, i'm not familiar coffee or haml.
just call
$('#someidorclass').wysihtml5();
check page source code , see whether wysiwyg iframe code there
Comments
Post a Comment