# Customizing the Ok/Cancel buttons for in\_place\_editor

**URL:** <https://www.ruby-forum.com/t/customizing-the-ok-cancel-buttons-for-in-place-editor/104321>\
**Category:** Rails\
**Created:** [May 16, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/customizing-the-ok-cancel-buttons-for-in-place-editor/104321 "2007-05-16T19:30:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HSWade\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19adc/32.png) [@HSWade\_M](https://www.ruby-forum.com/u/HSWade_M)\
**Post date:** [May 16, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/customizing-the-ok-cancel-buttons-for-in-place-editor/104321/1 "2007-05-16T19:30:58Z")

</div>

Is there an easy way to get the in\_place\_editor to use image-based  
submit and cancel buttons? Or does that involve hacking the  
javascript directly?

–Wade

---

<div class="post-metadata">

**Author:** ![HSWade\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19adc/32.png) [@HSWade\_M](https://www.ruby-forum.com/u/HSWade_M)\
**Post date:** [May 16, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/customizing-the-ok-cancel-buttons-for-in-place-editor/104321/2 "2007-05-16T20:00:02Z")

</div>

On 5/16/07, H. Wade M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there an easy way to get the in\_place\_editor to use image-based  
> submit and cancel buttons? Or does that involve hacking the  
> javascript directly?

You can pass options to change the text of the submit button and  
cancel link, but to use image buttons I think you would need to hack  
the javascript. You’d be overriding the  
Ajax.InPlaceEditor.createForm() method.

If you look towards the bottom of  
[http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor](http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor),  
you’ll see some approaches to customizing the JS without directly  
hacking the scriptaculous files.
