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

Apply a class when the placeholder text is used. #517

Closed vanboom closed 8 years ago

vanboom commented 8 years ago

Typically placeholders are shown in a muted text for input values. To emulate this, I have added the application of the .bip_placeholder class when the placeholder is used in place of nil values. This will allow the developer to style the placeholder different that the real value.

vanboom commented 8 years ago

See #478, my apologies for submitting a duplicate.