Browse Source

v0.3.26

pull/36/head
Artur Arseniev 9 years ago
parent
commit
4ffdc8f4e1
  1. 2
      bower.json
  2. 16
      dist/grapes.min.js
  3. 2
      package.json
  4. 3
      src/demo.js
  5. 18
      src/parser/model/ParserHtml.js

2
bower.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Open source Web Template Editor",
"version": "0.3.25",
"version": "0.3.26",
"author": "Artur Arseniev",
"homepage": "http://grapesjs.com",
"main": [

16
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
package.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Open source Web Template Editor",
"version": "0.3.25",
"version": "0.3.26",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",

3
src/demo.js

@ -9,7 +9,7 @@ require(['config/require-config'], function() {
noticeOnUnload: 0,
container : '#gjs',
height: '100%',
//fromElement: true,
fromElement: true,
/*
components: [{
type: 'text',
@ -33,7 +33,6 @@ require(['config/require-config'], function() {
content: " More text node --- ",
}],
}],*/
components: '<div>content1 <div><span>nested</span></div> content2</div>',
storageManager:{
autoload: 0,

18
src/parser/model/ParserHtml.js

@ -132,24 +132,6 @@ define(function(require) {
continue;
}
}
// Find text nodes
/*
if(model.type == 'textnode'){
// Pass content to the previous model if it's a text node
if(prevIsText){
prevSib.content += node.nodeValue;
continue;
}
// Make it text node only if the content is not empty
if(node.nodeValue.trim()){
console.log('part 1', model);
model.type = 'text';
model.tagName = TEXT_NODE;
model.content = node.nodeValue;
}
}
*/
// Check if it's a text node and if it could be moved to the prevous model
/*
if(c.textTags.indexOf(model.tagName) >= 0){

Loading…
Cancel
Save