On Jan 15, 2008 1:49 PM, Andy Koch <[EMAIL PROTECTED]> wrote:
>
> I'd like to disable the highlight effect on text that's embedded in
> the inPlaceEditor.

Without changing the existing behavior, there really isn't a way to
just flat-out disable the hover effect, however there are a few
options you can tweak to make the hover effect invisible. Take a look
at highlightColor and highlightEndColor (defaults to #ff9 and #fff,
respectively).

Also you can pass in a hoverClassName, which will be applied to the
span (or whatever your element is) when you are hovering over the
control. You might be able to use some additional CSS to target that
case and override any other effects.

> I've seen other posts on this idea where they've
> suggested modifiying the control.js code.

As an alternative to modifying the scriptaculous source code, you may
want to look into subclassing the InPlaceEditor or using function
wrapping to apply your changes to the library without corrupting the
code. That way when you update your library, you won't lose any
changes you have made.

-justin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to