I\'m using best_in_place gem to editing client\'s info in-place.
My question is, how can I integrate a WYSIWYG Editor for editing this content as HTML? I\'m currently us
You have to iterate over every element with class "wysihtml5" so it should be this way.
$(function(){
jQuery(".best_in_place").best_in_place();
$.each('.wysihtml5', function(i, elem){
$(elem).wysihtml5();
});
});
And converted to Coffee with Js2Coffee it should work.
$ ->
jQuery(".best_in_place").best_in_place()
$.each ".wysihtml5", (i, elem) ->
$(elem).wysihtml5()