[Deprecated] Kanka Backup to Local Storage

Copies the editor’s content to local storage before saving to allow recovery if something is lost in transit.

Autor
Salvatos
Instalaciones diarias
0
Instalaciones totales
3
Calificaciones
0 0 0
Versión
2
Creado
04/11/2022
Actualizado
10/03/2025
Tamaño
3.24 KB
Licencia
MIT
Funciona en

Deprecated script: I suggest using Kanka Autosaves instead.

This plugin creates a backup of an entity’s entry or post before saving, which can be recovered later if data is lost due to a failed connection to the server or an issue with the HTML filter. Content is saved to the browser’s local storage, so the recovered data is dependent on the machine and user session used and may be lost if you clear your cookies, cache and similar browser information.

How to use

Your content is automatically saved to local storage when you edit an entry or post and click the Save button. When you edit the same content again, a button will be added to the Summernote editor’s toolbar (look for the clock icon on the far right). Clicking this button will copy the backup to your clipboard so you can paste it in the application of your choice to view it, or paste it back directly into Summernote. A warning will be given if no backup exists in your current session for the current entity or post.

Caveats

  • This plugin currently only saves content when the Save button is clicked. Keyboard shortcuts and other options like Save & Edit are not supported.
  • Nothing is backed up when creating a new entity or post. Since the plugin can’t determine what ID Kanka will give them, it wouldn’t be able to identify them in the future.