mirror of
https://github.com/codex-team/editor.js
synced 2024-05-10 10:26:46 +02:00
Add article id
This commit is contained in:
parent
140d67d198
commit
ae073a61ce
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -221,6 +221,7 @@
|
|||
},
|
||||
},
|
||||
data : {
|
||||
id: +new Date(),
|
||||
items: [
|
||||
{
|
||||
type : 'paragraph',
|
||||
|
|
|
@ -152,6 +152,7 @@ module.exports = (function (saver) {
|
|||
editor.state.jsonOutput = items;
|
||||
|
||||
return {
|
||||
id: editor.state.blocks.id || null,
|
||||
time: +new Date(),
|
||||
version: editor.version,
|
||||
items
|
||||
|
@ -161,4 +162,4 @@ module.exports = (function (saver) {
|
|||
|
||||
return saver;
|
||||
|
||||
})({});
|
||||
})({});
|
||||
|
|
Loading…
Reference in a new issue