|
Save Remote Functionality
The Save Remote functionalities is very useful when you need to edit a document, and make feel your users that they are using any word processing application. Using the Save Remote functionalities they can save the document directly from the editor by hitting "Save Remote" on the File menu or if configured properly, they can use the toolbar shortcut icon "Save" to save the content remotely.
The editor will send the content to the server as POST data contained in the variable html_content which is the default name. If you want to change it, you can use the following parameter:
<PARAM NAME ="variableName" VALUE="htmlcontent">
The saveURL parameter should be a fully qualified absolute URL with http://.. etc. Note that when posting the data to the server, the applet will not change the page in your browser - it works exactly as when you save a file to your local computer with the difference that it sends it remotely. If there occurs an error, error message will be displayed, otherwise on the status bar will appear " File saved successfully".
This approach is very useful for example when you need to edit a complex document and also you using the external window editor mode. This way you will feel as using any normal word processing application, because at the end of the editing itwill be sufficient to hit the "Save" icon or "Save Remote" menu item and simply close the window when "File Saved Successfully" message appears.
For advanced configuration you may use the following additional parameters.
<PARAM NAME="useSaveAsSaveRemote" VALUE="true|false"> - this will cause all buttons/menus for save to have the behavior of "Save Remote" functionality. This way also the shortcut on the toolbar ("the save floppy icon") can be used to save the content of the editor remotely. The default is false.
<PARAM NAME="saveEntireFile" VALUE="true|false"> - this parameter specifies whether the "Save Remote" functionality should send entire HTML files (including <html><head><body> tags) or should send only the body content as a page fragment.
|