bernat / best_in_place

A RESTful unobtrusive jQuery Inplace-Editor and a helper as a Rails Gem
http://blog.bernatfarrero.com/in-place-editing-with-javascript-jquery-and-rails-3/
1.2k stars 571 forks source link

Customizing the wrapper content #536

Open milgner opened 8 years ago

milgner commented 8 years ago

The best_in_place method currently writes a span with only the attribute value as its content. Is there any way to have it somehow generate another wrapper around the text content? Something like

  <span class="best_in_place">
    <span class="best_in_place_value">attribute value</span>
  </span>