title: Integration of WYSIWYG editor to best-in-place textarea
body: <p>I'm using best_in_place gem to editing client's info in-place.</p>
  
  <p>My question is, how can I integrate a WYSIWYG Editor for editing this content as HTML?
  I'm currently using this editor: <a href="https://github.com/Nerian/bootstrap-wysihtml5-rails/">https://github.com/Nerian/bootstrap-wysihtml5-rails/</a></p>
  
  <p>I'm not good at javascript and cofeescript, so I'm probably doing something wrong.</p>
  
  <p><strong>My code in view:</strong>    </p>
  
  <pre><code>&lt;%= best_in_place @client, :info, :type =&gt; :textarea, :nil =&gt; "Click here to add content!", :html_attrs =&gt; { class: "wysihtml5" }, :sanitize =&gt; false %&gt;
  </code></pre>
  
  <p><strong>And clients.js.cofee</strong></p>
  
  <pre><code>$(document).ready -&gt;
  
  # Activating Best In Place
  jQuery(".best_in_place").best_in_place()
  
  # Loading editor
  $(".wysihtml5").each (i, elem) -&gt;
  $(elem).wysihtml5()
  </code></pre>
  
  <p>Does anyone knows what to do about it?</p>
  
  <p>Thanks</p>