Temporary patch to InPlaceEditor failure issues
Working one the new InPlaceRichEditor version I first made a closer look again at InPlaceEditor from scriptaculous and found 2 bugs on the failure handling.
I first made a patch a help the core team fixing it but as I needed to apply this fix right away for my own use I made a small extension fixing this issues.
Notice
Please be aware that it's patching the actual version of InPlaceEditor, actually at revision 8787 on script.aculo.us 1.8.1 and it can make more damages on previous or later versions.
How to use
You just need to include the script after the original InPlaceEditor script
... <head> ... <script src="javascripts/prototype.js" type="text/javascript"></script> <script src="javascripts/control.js" type="text/javascript"></script> <script src="javascripts/patch_inplaceeditor_1-8-1.js" type="text/javascript"></script> ... </head> ...
UPDATE: You may also like to use the feature editOnBlank
Have fun ;-)
Comments
-
InPlaceEditor onFailure is *still* broken in 1.8.2 so thank you for this patch!

Web application developer born in summer '83, I made my company