mirror of
https://github.com/codex-team/editor.js
synced 2024-06-13 19:32:28 +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 : {
|
data : {
|
||||||
|
id: +new Date(),
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type : 'paragraph',
|
type : 'paragraph',
|
||||||
|
|
|
@ -152,6 +152,7 @@ module.exports = (function (saver) {
|
||||||
editor.state.jsonOutput = items;
|
editor.state.jsonOutput = items;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
id: editor.state.blocks.id || null,
|
||||||
time: +new Date(),
|
time: +new Date(),
|
||||||
version: editor.version,
|
version: editor.version,
|
||||||
items
|
items
|
||||||
|
@ -161,4 +162,4 @@ module.exports = (function (saver) {
|
||||||
|
|
||||||
return saver;
|
return saver;
|
||||||
|
|
||||||
})({});
|
})({});
|
||||||
|
|
Loading…
Reference in a new issue