[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.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Salvatos
日安装量
0
总安装量
3
评分
0 0 0
版本
2
创建于
2022-11-04
更新于
2025-03-10
大小
3.2 KB
许可证
MIT
适用于

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.