Improved In Place Editor plugin

Plugin details

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.

Websitehttp://www.redlinesoftware.com/ Repositoryhttp://svn.redlinesoftware.com/plugins/in_place_editor Author Redline Software Inc. Tags editor LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://svn.redlinesoftware.com/plugins/in_place_editor

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

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago