# Changing the style of in\_place\_editor\_field

**URL:** <https://www.ruby-forum.com/t/changing-the-style-of-in-place-editor-field/140554>\
**Category:** Rails\
**Created:** [June 16, 2008, 6:28am UTC](https://www.ruby-forum.com/t/changing-the-style-of-in-place-editor-field/140554 "2008-06-16T06:28:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suneeta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Post date:** [June 16, 2008, 6:28am UTC](https://www.ruby-forum.com/t/changing-the-style-of-in-place-editor-field/140554/1 "2008-06-16T06:28:34Z")

</div>

Hi…

I’m using in\_place\_editor\_field. I want to change the default style of  
in\_place\_editor\_field. I need to apply another style for the label, the  
yellow and white highlighting color.

I tried  
\<%= in\_place\_editor\_field :ci\_class, :name, {:id =\> @ci\_class.id},  
{:highlightcolor =\> “#FF0000”} %\>

But this is not working. Please help me to change its style.

---

<div class="post-metadata">

**Author:** ![suneeta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Post date:** [June 16, 2008, 11:19am UTC](https://www.ruby-forum.com/t/changing-the-style-of-in-place-editor-field/140554/2 "2008-06-16T11:19:42Z")

</div>

Suneeta Km wrote:

> Hi…
> 
> I’m using in\_place\_editor\_field. I want to change the default style of  
> in\_place\_editor\_field. I need to apply another style for the label, the  
> yellow and white highlighting color.
> 
> I tried  
> \<%= in\_place\_editor\_field :ci\_class, :name, {:id =\> @ci\_class.id},  
> {:highlightcolor =\> “#FF0000”} %\>
> 
> But this is not working. Please help me to change its style.

Hi…

I have another doubt also. Please help.

How can I get a reference to the Ajax.InPlaceEditor object generated  
by in\_place\_editor\_field helper so that I can call the dispose()  
method?  
I want to have a link that toggles the in-place-edit capability. I have  
not been able to find a way to do that yet.

Thanks  
Suneeta
