This project is not covered by Drupal’s security advisory policy.
This module provides a way to autosave data entered in any Drupal form without actually submitting the form, which helps if the user is writing an article or a comment and the browser crashed or the power went down, or even if the window was closed accidently.
It works using the jQuery Sisyphus plugin, which is a lightweight jQuery plugin that uses Local Storage to save form fields every specific time span that is configurable from the module settings page.
Drupal 7
Installation instructions
- Install the other modules that this one depends upon. Follow these contrib module installation instructions if you’re new to this kind of thing: https://drupal.org/documentation/install/modules-themes/modules-7
- jQuery Update: https://drupal.org/project/jquery_update
- Libraries API: https://drupal.org/project/libraries
- Download the Javascript libraries.
- First, make sure that the sites/all/libraries directory exists.
- Download the two JS libraries to the sites/all/libraries directory:
- Extract both zip files.
- Rename both directories to remove -master. The directories should be called sisyphus and jStorage.
- Enable the Save Form State module from the Modules list, at admin/modules
- Configure jQuery Update to use version 1.7 or above. The configuration can be found at admin/config/development/jquery_update.
- Configure the Save Form State module options at admin/config/content/formsavestate.
- Navigate to the forms you choose in the previous step and enjoy the safety of your data.
Using CKEditor
Sisyphus does not work with CKEditor out of the box, but there is a fork available that does support CKEditor. Install this module normally following the instructions above, but instead of getting the Sisyphus library from compujohnny/sisyphus on github in step 2 above, download this version: https://github.com/TommiGustafsson/sisyphus/archive/master.zip
If you have already installed this module and want to add CKEditor support, simply download that fork of Sisyphus and replace the existing sites/all/libraries/sisyphus directory with that version.
Drupal 8 & 9
Install module
composer require drupal/form_save_state
External libraries are temporary included into the module. To configure the Save Form State module visit /admin/config/user-interface/form-save-state.
ROADMAP
- Manage external js libraries with drupal library api. Remove them from this module.
- Implement time interval for form state save.
- Add support for different wysiwyg editors.
Attachment | Size |
---|---|
Module settings form | 150.52 KB |
Project information
- Module categories: Content Editing Experience, Developer Tools
- 39 sites report using this module
- Created by compujohnny on , updated
- Drupal 10 is here!
Drupal 10 ready
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.