Browse Source

Bump v0.18.4

pull/4214/head v0.18.4
Artur Arseniev 5 years ago
parent
commit
e309c05e85
  1. 4
      dist/grapes.min.js
  2. 2
      dist/grapes.min.js.map
  3. 1
      docs/api/storage_manager.md
  4. 2
      package.json
  5. 16
      src/editor/index.js

4
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
dist/grapes.min.js.map

File diff suppressed because one or more lines are too long

1
docs/api/storage_manager.md

@ -44,7 +44,6 @@ storageManager.add(...);
* [setAutosave][4]
* [getStepsBeforeSave][5]
* [setStepsBeforeSave][6]
* [setStepsBeforeSave][6]
* [getStorages][7]
* [getCurrent][8]
* [getCurrentStorage][9]

2
package.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.18.3",
"version": "0.18.4",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",

16
src/editor/index.js

@ -442,6 +442,7 @@ export default (config = {}, opts = {}) => {
* Get the JSON project data, which could be stored and loaded back with `editor.loadProject(json)`
* @returns {Object}
* @example
* @private
* console.log(editor.getProject());
* // { pages: [...], styles: [...], ... }
*/
@ -449,6 +450,13 @@ export default (config = {}, opts = {}) => {
return em.storeData();
},
/**
* Get the JSON data object, which could be stored and loaded back with `editor.loadData(json)`
* @returns {Object}
* @example
* console.log(editor.storeData());
* // { pages: [...], styles: [...], ... }
*/
storeData() {
return em.storeData();
},
@ -466,12 +474,20 @@ export default (config = {}, opts = {}) => {
* Load data from the JSON project
* @param {Object} data Project to load
* @example
* @private
* editor.loadProject({ pages: [...], styles: [...], ... })
*/
loadProject(data) {
return em.loadData(data);
},
/**
* Load data from the JSON data object
* @param {Object} data Data to load
* @return {Object} Loaded object
* @example
* editor.loadData({ pages: [...], styles: [...], ... })
*/
loadData(data) {
return em.loadData(data);
},

Loading…
Cancel
Save