public
Description: Monkeypatches script.aculo.us's InPlaceEditor to give it a preview mode
Homepage: http://dougmcinnes.com/2008/11/13/javascript-love/
Clone URL: git://github.com/latimes/inplace_preview.git
inplace_preview / README.txt
100644 19 lines (15 sloc) 0.87 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
inplace_preview.js
Version 1.0.1
 
Monkeypatches script.aculo.us's InPlaceEditor to give it a preview mode.
http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor
 
Additional InPlaceEditor configuration parameters (defaults are in [brackets]):
previewLink: set this to true to enable preview functionality. [false]
previewText: text for the preview link (when in edit mode). ["Preview"]
editText: text for the edit link (when in preview mode). ["Edit"]
loadPreviewURL: URL that the editor will query to get the rendered preview. If
                    not provided it will just update the preview directly from the
                    textarea. [null]
previewLoadingText: text for the preview area when loaded from the
                    remote server. ["Preview Loading..."]
 
Enjoy!
Doug McInnes <doug.mcinnes@latimes.com>