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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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.