AutoSave Plugin

Auto Save Plugin for the CKEditor which automatically saves the content (via HTML5 LocalStorage) temporarly (for example when a login session times out). And after the content is saved it can be restored when the editor is reloaded.

  1. Extract the contents of the file into the "plugins" folder of CKEditor.
  2. In the CKEditor configuration file (config.js) add the following code:
config.extraPlugins = 'autosave';
Optional Auto save Key

The Default autosavekey can be overidden from the config ...

config.autosave_SaveKey = 'autosaveKey';
Ignore Content older then X

The Default Minutes (Default is 1440 which is one day) after the auto saved content is ignored can beoveridden from the config ...

config.autosave_NotOlderThen = 1440;
Save Content on Destroy

Setting to Save content on editor destroy (Default is false) ...

config.autosave_saveOnDestroy = false;
Save Detection Selectors

Setting to set the Save button to inform the plugin when the content is saved by the user and doesn't need to be stored temporary ...

config.autosave_saveDetectionSelectors = "a[href^='javascript:__doPostBack'][id*='Save'],a[id*='Cancel']";

How the Plugin works

The Plugin saves the content every 25 seconds (can be defined in the Config - autosave_delay), but only when the content has changed.

And when the Editor Page is reloaded and auto saved content is found and its different from the content loaded with the editor the user will be asked if the auto saved content should be loaded instead.



96,134 downloads (view stats)


Plugin versions CKEditor versions
4.14 4.13 4.12

Version: 0.18.4

DownloadRelease notes

  • Bug fixes
Twitter Facebook Facebook Instagram Medium Linkedin GitHub Arrow down Phone Menu Close icon Check