mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 07:35:48 +01:00
storage -> localHistoryPlugin
This commit is contained in:
parent
c4471319c7
commit
5df9233fb5
2 changed files with 5 additions and 5 deletions
|
|
@ -51,7 +51,7 @@
|
|||
<script src="plugins/embed/embed.js"></script>
|
||||
<link rel="stylesheet" href="plugins/embed/embed.css">
|
||||
|
||||
<script src="plugins/localstorage/localstorage.js"></script>
|
||||
<script src="plugins/localHistory/localHistory.js"></script>
|
||||
|
||||
<script>
|
||||
codex.editor.start({
|
||||
|
|
@ -190,8 +190,8 @@
|
|||
},
|
||||
storage: {
|
||||
type: 'storage',
|
||||
prepare: storage.prepare,
|
||||
destroy: storage.destroy
|
||||
prepare: localHistoryPlugin.prepare,
|
||||
destroy: localHistoryPlugin.destroy
|
||||
},
|
||||
},
|
||||
data : {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Saves editor data to browser local storage.
|
||||
* And uploads data from local storage if there is newer version
|
||||
*/
|
||||
var storage = function () {
|
||||
var localHistoryPlugin = function () {
|
||||
|
||||
var editor = codex.editor,
|
||||
CURRENT_ARTICLE_HASH = null,
|
||||
|
|
@ -211,7 +211,7 @@ var storage = function () {
|
|||
var destroy = function () {
|
||||
|
||||
stop();
|
||||
storage = null;
|
||||
localHistoryPlugin = null;
|
||||
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue