|
|
|
@ -12,8 +12,7 @@ |
|
|
|
body, html{ height: 100%; margin: 0;} |
|
|
|
</style> |
|
|
|
<body> |
|
|
|
|
|
|
|
<div id="gjs" style="height:0px; overflow:hidden"> |
|
|
|
<div id="gjs" style="height:0px; overflow:hidden;"> |
|
|
|
<header class="header-banner"> |
|
|
|
<div class="container-width"> |
|
|
|
<div class="logo-container"> |
|
|
|
@ -870,33 +869,33 @@ |
|
|
|
*/ |
|
|
|
|
|
|
|
commands: { |
|
|
|
defaults : [{ |
|
|
|
id: 'open-github', |
|
|
|
run: function(editor, sender){ |
|
|
|
sender.set('active',false); |
|
|
|
window.open('https://github.com/artf/grapesjs','_blank'); |
|
|
|
} |
|
|
|
},{ |
|
|
|
id: 'undo', |
|
|
|
run: function(editor, sender){ |
|
|
|
sender.set('active',false); |
|
|
|
editor.UndoManager.undo(true); |
|
|
|
} |
|
|
|
},{ |
|
|
|
id: 'redo', |
|
|
|
run: function(editor, sender){ |
|
|
|
sender.set('active',false); |
|
|
|
editor.UndoManager.redo(true); |
|
|
|
} |
|
|
|
},{ |
|
|
|
id: 'clean-all', |
|
|
|
run: function(editor, sender){ |
|
|
|
sender.set('active',false); |
|
|
|
if(confirm('Are you sure to clean the canvas?')){ |
|
|
|
var comps = editor.DomComponents.clear(); |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
defaults: [{ |
|
|
|
id: 'open-github', |
|
|
|
run: function(editor, sender){ |
|
|
|
sender.set('active',false); |
|
|
|
window.open('https://github.com/artf/grapesjs','_blank'); |
|
|
|
} |
|
|
|
},{ |
|
|
|
id: 'undo', |
|
|
|
run: function(editor, sender){ |
|
|
|
sender.set('active',false); |
|
|
|
editor.UndoManager.undo(true); |
|
|
|
} |
|
|
|
},{ |
|
|
|
id: 'redo', |
|
|
|
run: function(editor, sender){ |
|
|
|
sender.set('active',false); |
|
|
|
editor.UndoManager.redo(true); |
|
|
|
} |
|
|
|
},{ |
|
|
|
id: 'clean-all', |
|
|
|
run: function(editor, sender){ |
|
|
|
sender.set('active',false); |
|
|
|
if(confirm('Are you sure to clean the canvas?')){ |
|
|
|
var comps = editor.DomComponents.clear(); |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
}, |
|
|
|
|
|
|
|
assetManager: { |
|
|
|
@ -904,17 +903,17 @@ |
|
|
|
storeOnChange : true, |
|
|
|
storeAfterUpload : true, |
|
|
|
assets : [ |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/78c5d6/fff/image1.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/459ba8/fff/image2.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/79c267/fff/image3.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/c5d647/fff/image4.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/f28c33/fff/image5.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/e868a2/fff/image6.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/cc4360/fff/image7.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : './img/work-desk.jpg', date: '2015-02-01',height:1080, width:1728}, |
|
|
|
{ type: 'image', src : './img/phone-app.png', date: '2015-02-01',height:650, width:320}, |
|
|
|
{ type: 'image', src : './img/bg-gr-v.png', date: '2015-02-01',height:1, width:1728}, |
|
|
|
] |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/78c5d6/fff/image1.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/459ba8/fff/image2.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/79c267/fff/image3.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/c5d647/fff/image4.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/f28c33/fff/image5.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/e868a2/fff/image6.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : 'http://placehold.it/350x250/cc4360/fff/image7.jpg', height:350, width:250}, |
|
|
|
{ type: 'image', src : './img/work-desk.jpg', date: '2015-02-01',height:1080, width:1728}, |
|
|
|
{ type: 'image', src : './img/phone-app.png', date: '2015-02-01',height:650, width:320}, |
|
|
|
{ type: 'image', src : './img/bg-gr-v.png', date: '2015-02-01',height:1, width:1728}, |
|
|
|
] |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|