Does anyone know how to change the highlight and fade-to color of the
AJAX in_place_editor and in_place_editor_field? Amazingly enough, the
Rails code seems to assume that we always want yellow highlights and
fade-to-white.
/ Peter
Does anyone know how to change the highlight and fade-to color of the
AJAX in_place_editor and in_place_editor_field? Amazingly enough, the
Rails code seems to assume that we always want yellow highlights and
fade-to-white.
/ Peter
Thanks for the quick reply. (1) is obviously the better way, so I’ll
stick to that. It is somewhat surprising, though, that Rails assumes
every web application has a white background… How 2.0.
/ Peter
6 feb 2007 kl. 12.12 skrev Christos Z.:
On 6 Feb 2007, at 10:05, Peter B. wrote:
Does anyone know how to change the highlight and fade-to color of the
AJAX in_place_editor and in_place_editor_field?
Unfortunately, you are out of lack if you are looking for a clean way
to do it. The in_place_editor helper doesn’t support all the options
of Ajax.InPlaceEditor[1]
You could do one of two things.
<%= in_place_editor_field :post, ‘title’, {}, {:highlight_color =>
‘#FF0000’, :highlight_end_color => ‘#BB00FF’ }
Keeping in mind that InPlaceEditor is going to become a plugin in
Rails 2.0, I would think it will eventually see some improvements on
that area.
-christos
[1] http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor
[2] Parked at Loopia
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs