Tag: 最好的

将WYSIWYG编辑器集成到最佳原位textarea

我正在使用best_in_place gem来就地编辑客户端的信息。 我的问题是,如何整合WYSIWYG编辑器以将此内容编辑为HTML? 我目前正在使用这个编辑器: https : //github.com/Nerian/bootstrap-wysihtml5-rails/ 我不擅长javascript和cofeescript,所以我可能做错了。 我的代码在视图中: :textarea, :nil => “Click here to add content!”, :html_attrs => { class: “wysihtml5” }, :sanitize => false %> 和clients.js.cofee $(document).ready -> # Activating Best In Place jQuery(“.best_in_place”).best_in_place() # Loading editor $(“.wysihtml5”).each (i, elem) -> $(elem).wysihtml5() 有谁知道该怎么办? 谢谢