public
Description:
Homepage:
Clone URL: git://github.com/redlinesoftware/in_place_editor.git
name age message
file README Mon Jul 23 00:23:30 -0700 2007 rewording [akaspick]
file Rakefile Sun Jul 22 23:27:50 -0700 2007 improved in_place_editor plugin [akaspick]
file init.rb Mon Sep 17 09:28:43 -0700 2007 fix was not correct for edge... load_plugin doe... [akaspick]
file install.rb Sun Jul 22 23:27:50 -0700 2007 improved in_place_editor plugin [akaspick]
directory lib/ Sun Jul 22 23:27:50 -0700 2007 improved in_place_editor plugin [akaspick]
directory tasks/ Sun Jul 22 23:27:50 -0700 2007 improved in_place_editor plugin [akaspick]
directory test/ Sun Jul 22 23:27:50 -0700 2007 improved in_place_editor plugin [akaspick]
file uninstall.rb Sun Jul 22 23:27:50 -0700 2007 improved in_place_editor plugin [akaspick]
README
InPlaceEditor
=============

v0.9

An improved in_place_editor method than that provided in rails.

This plugin is drop-in compatible with the current/old in_place_editor method, but adds the ability to specify any 
option that the Ajax.InPlaceEditor control accepts.

The current rails version is missing a lot of valid options for the control, but this plugin will accept any current and 
new parameters for the control.

For example, the current rails version (< 2.0) doesn't allow the setting of onFailure for the control, but with this 
plugin, simply specify it as follows...
:on_failure => "function(transport) {alert(\"Error: \" + transport.responseText.stripTags());}"

The option translation simply converts underscored options to camelcase in the JS.
eg. :on_failure -> onFailure, :rows -> rows, :highlight_color -> highlightColor

* note
highlightColor is the name of the option in the new rewritten version of the control, highlightcolor (no capital C) is 
used in the version 1.7 of scriptaculous and previous versions.

Some options require quoting to be valid in the JS, such as :highlight_color.  The 2 ways to specify the option are...

1) Manually quote the option 
:highlight_color => "'#000000'"

2) Use the :quoted option
:quoted => {:highlight_color => '#000000'}