Browse Source

Update demo

pull/2301/head
Artur Arseniev 10 years ago
parent
commit
8bff74dff5
  1. 32
      demo.html
  2. 14
      js/grapes.min.js
  3. 2
      stylesheets/grapes.min.css

32
demo.html

@ -726,31 +726,27 @@
{ id: 'comp100', className: 'fa fa-square-o icon-comp100', command: 'insert-custom',
attributes : { title : 'Create all-width element' },
options: {
content : { style: { width: '100%', 'min-height': '75px', 'padding': '7px'}},
terminateAfterInsert : false,
},
content: '<div style="width:100%; min-height:75px; padding:7px"></div>',
terminateAfterInsert: false,
},
},{ id: 'comp50', className: 'fa fa-square-o icon-comp50', command: 'insert-custom',
attributes : { title : 'Create 2 columns element' },
options: {
content : { style: { width: '100%', 'padding': '7px'},//, 'display': 'table'
components: [
{style: {width: '50%', 'min-height': '75px', 'padding': '7px', 'float':'left' }},
{style: {width: '50%', 'min-height': '75px', 'padding': '7px', 'float':'left' }},
{style: {clear:'both'}},
]
},
content: '<div style="width:100%; padding:7px">'+
'<div style="width:50%; min-height:75px; padding:7px; float:left"></div>' +
'<div style="width:50%; min-height:75px; padding:7px; float:left"></div>' +
'<div style="clear:both"></div>' +
'</div>',
},
},{ id: 'comp30', className: 'fa fa-square-o icon-comp30', command: 'insert-custom',
attributes : { title : 'Create 3 columns element' },
options: {
content : { style: { width: '100%', 'padding': '7px'},//, 'display': 'table'
components: [
{style: {width: '33.333%', 'min-height': '75px', 'padding': '7px', 'float':'left' }},
{style: {width: '33.333%', 'min-height': '75px', 'padding': '7px', 'float':'left' }},
{style: {width: '33.333%', 'min-height': '75px', 'padding': '7px', 'float':'left' }},
{style: {clear:'both'}},
]
},
content: '<div style="width:100%; padding:7px">'+
'<div style="width:33.333%; min-height:75px; padding:7px; float:left"></div>' +
'<div style="width:33.333%; min-height:75px; padding:7px; float:left"></div>' +
'<div style="width:33.333%; min-height:75px; padding:7px; float:left"></div>' +
'<div style="clear:both"></div>' +
'</div>',
},
},
]

14
js/grapes.min.js

File diff suppressed because one or more lines are too long

2
stylesheets/grapes.min.css

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save