Skip to content

Commit

Permalink
Build 0.16.12
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Apr 22, 2020
1 parent d03257d commit 6b21205
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
24 changes: 23 additions & 1 deletion dist/grapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -34264,6 +34264,28 @@ var compProt = _ComponentView__WEBPACK_IMPORTED_MODULE_2__["default"].prototype;
comps.trigger('resetNavigator');
}
},
getModelsFromEl: function getModelsFromEl(el) {
var result = [];
var children = (el || this.el).childNodes;

for (var index = 0; index < children.length; index++) {
var child = children[index];
var model = child.__cashData && child.__cashData.model;

if (model) {
model.components = this.getModelsFromEl(child);

if (model.get('content')) {
model.attributes.content = child.textContent;
} // TODO add attributes;


result.push(model);
}
}

return result;
},

/**
* Callback on input event
Expand Down Expand Up @@ -38539,7 +38561,7 @@ var defaultConfig = {
editors: editors,
plugins: plugins,
// Will be replaced on build
version: '0.16.11',
version: '0.16.12',

/**
* Initialize the editor with passed options
Expand Down
4 changes: 2 additions & 2 deletions dist/grapes.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/grapes.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.16.11",
"version": "0.16.12",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",
Expand Down

0 comments on commit 6b21205

Please sign in to comment.