Temporary patch to InPlaceEditor failure issues

written by seb on February 3rd, 2008 @ 12:32 AM

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

  • Ed C. on 03 Dec 22:32

    InPlaceEditor onFailure is *still* broken in 1.8.2 so thank you for this patch!

Comments are closed