|
|
Supported
versions: Firefox 1.0 - 2.0.0.* ALL
Notes / Comments: A new menu item, Text, is created in the context menu of the text areas, with the following submenu items:Load FromOpen the file picker, choose a file, load the contents into the text areaSave AsOpen the file picker, choose a file to save to, save the contents of the text areaSaveIf the file name has already been established, save without opening the file picker. While the cursor is in the text area, this functionality can be accessed using Ctrl+S shortcut.AutosaveIf the file name has already been established, automatically save the file every few seconds. The delay can be changed by modifying the preference setting extensions.savetextarea.autosave-delay, which specifies the number of seconds between saves. The default is 300. If autosave is enabled, the files are also saved when the document is unloaded.Load, save and autosave can be controlled with custom html attributes, such as this: <textarea loadfrom="file_name_to_load_from" saveto="file_name_to_save_to" autosave="yes" ....This is an advanced feature which is turned off by default, because it opens a potential security hole. To enable it, change preference setting extensions.savetextarea.enable-attributes to true. This will enable custom attributes for all sites that match the regular expression specified in extensions.savetextarea.allow-attributes-from. The default regular expression is "^file:///.*", which allows access to custom attributes only in documents loaded from your local drive. Modify it as necessary into something like "(^file:///|^http://www.yoursite.com/yourdocument.html)", but make sure you know what you are doing or you'll risk opening your computer to outside world.---If the extension does not work for you1. Please make sure you're focused on an editable field, such as the search box in the center of the page on google.com, and it still does not work. If it does but you experience problems elsewhere, please send me the URL2. set javascript.options.showInConsole config parameter to true, try the extension again and e-mail me any errors that come up in javascript console.CR/LF - the text is coming up as one line in notepad because the files are saved with unix-style line endings, LF only. This is how the text is maintained internally by the text areas.Comments with 1 star rating are not the best way to request updates.
Categories: Editing and Forms
Install: Save Text Area