diff --git a/demo.html b/demo.html index 1766308ab..53bba833f 100644 --- a/demo.html +++ b/demo.html @@ -212,22 +212,44 @@ commands: { defaults : [{ id: 'open-github', - run: function(em, sender){ sender.set('active',false); window.open('https://github.com/artf/grapesjs','_blank'); }, - + stop: function(){} + },{ + id: 'undo', + run: function(em, sender){ + sender.set('active',false); + em.get('UndoManager').undo(); + }, + stop: function(){} + },{ + id: 'redo', + run: function(em, sender){ + sender.set('active',false); + em.get('UndoManager').redo(); + }, + stop: function(){} + },{ + id: 'clean-all', + run: function(em, sender){ + sender.set('active',false); + if(confirm('Are you sure to clean the canvas?')){ + var comps = em.get('Components').getComponents(); + var len = comps.length; + for(var i = 0; i < len; i++){ + comps.pop(); + } + } + }, stop: function(){} }], }, - assetManager: { - uploadText : 'No uploads in demo :)', storageType : '', storeOnChange : true, storeAfterUpload : true, - disableUpload : true, assets : [ { type: 'image', src : 'http://placehold.it/350x250/78c5d6/fff/image1.jpg', date: '2015-01-01',height:350, width:250}, { type: 'image', src : 'http://placehold.it/350x250/459ba8/fff/image2.jpg', date: '2015-02-01',height:350, width:250}, @@ -305,6 +327,13 @@ { id: 'export', className: 'fa fa-code', command: 'export-template', attributes: { title: 'View code' }, }, { id: 'view-github', className: 'fa fa-github', command: 'open-github', attributes: { title: 'View on Github' }, }, ], + },{ + id : 'options2', + buttons : [ + { id: 'undo', className: 'fa fa-undo icon-undo', command: 'undo', attributes: { title: 'Undo (CTRL/CMD + Z)' }, }, + { id: 'redo', className: 'fa fa-repeat icon-redo', command: 'redo', attributes: { title: 'Redo (CTRL/CMD + SHIFT + Z)' }, }, + { id: 'clean-all', className: 'fa fa-trash icon-blank', command: 'clean-all', attributes: { title: 'Empty canvas' }, }, + ], },{ id : 'views', buttons : [{ id: 'open-sm', className: 'fa fa-paint-brush', command: 'open-sm', active: true, attributes: { title: 'Open Style Manager' },}, @@ -609,6 +638,36 @@ { value : 'center', name : 'Center', className: 'fa fa-align-center' }, { value : 'right', name : 'Right', className: 'fa fa-align-right'}, { value : 'justify', name : 'Justify', className: 'fa fa-align-justify'},], + },{ + name : 'Text shadow', + property : 'text-shadow', + type : 'stack', + preview : true, + properties : [{ + name: 'X position', + property: 'h-shadow', + type: 'integer', + units: ['px','%'], + defaults : 0, + },{ + name: 'Y position', + property: 'v-shadow', + type: 'integer', + units: ['px','%'], + defaults : 0, + },{ + name: 'Blur', + property: 'blur-radius', + type: 'integer', + units: ['px'], + defaults : 0, + min: 0, + },{ + name: 'Color', + property: 'shadow-color', + type: 'color', + defaults: 'black', + },], }], },{ name: 'Decorations', diff --git a/img/.DS_Store b/img/.DS_Store index 6ccd900eb..8c614a057 100644 Binary files a/img/.DS_Store and b/img/.DS_Store differ diff --git a/img/gif-img-txt.gif b/img/gif-img-txt.gif new file mode 100644 index 000000000..56e2aec4b Binary files /dev/null and b/img/gif-img-txt.gif differ diff --git a/img/gif-struct-m.gif b/img/gif-struct-m.gif new file mode 100644 index 000000000..a640b81f3 Binary files /dev/null and b/img/gif-struct-m.gif differ diff --git a/img/grapesjs-logo.svg b/img/grapesjs-logo.svg new file mode 100644 index 000000000..85c95fb3b --- /dev/null +++ b/img/grapesjs-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/layer-m.gif b/img/layer-m.gif new file mode 100644 index 000000000..baa84bdf2 Binary files /dev/null and b/img/layer-m.gif differ diff --git a/img/style-3d-text.gif b/img/style-3d-text.gif new file mode 100644 index 000000000..e56e20cf4 Binary files /dev/null and b/img/style-3d-text.gif differ diff --git a/img/style-m.gif b/img/style-m.gif new file mode 100644 index 000000000..8bc18a953 Binary files /dev/null and b/img/style-m.gif differ diff --git a/img/work-desk-14949.jpg b/img/work-desk-14949.jpg new file mode 100644 index 000000000..fdee4b90d Binary files /dev/null and b/img/work-desk-14949.jpg differ diff --git a/index.html b/index.html index 2f37561b5..ba1e35413 100644 --- a/index.html +++ b/index.html @@ -3,21 +3,31 @@