mirror of https://github.com/artf/grapesjs.git
4 changed files with 67 additions and 18 deletions
File diff suppressed because one or more lines are too long
@ -1,14 +1,65 @@ |
|||||
define(function () { |
define(function () { |
||||
|
var slc = 'select-comp'; |
||||
|
var crc = 'create-comp'; |
||||
|
var mvc = 'move-comp'; |
||||
|
var txc = 'text-comp'; |
||||
|
var imc = 'image-comp'; |
||||
|
var swv = 'sw-visibility'; |
||||
|
var expt = 'export-template'; |
||||
|
|
||||
return { |
return { |
||||
stylePrefix : 'pn-', |
stylePrefix: 'pn-', |
||||
|
|
||||
// Default panels
|
// Default panels
|
||||
defaults : [], |
defaults: [{ |
||||
|
id: 'commands', |
||||
|
buttons: [{ |
||||
|
id: slc, |
||||
|
command: slc, |
||||
|
className: 'fa fa-mouse-pointer', |
||||
|
attributes: { title : 'Select element' }, |
||||
|
},{ |
||||
|
id: crc, |
||||
|
command: crc, |
||||
|
className: 'fa fa-plus-square-o', |
||||
|
attributes: { title : 'Create element' }, |
||||
|
},{ |
||||
|
id: mvc, |
||||
|
command: mvc, |
||||
|
className: 'fa fa-arrows', |
||||
|
attributes: { title: 'Move elements' }, |
||||
|
},{ |
||||
|
id: txc, |
||||
|
command: txc, |
||||
|
className: 'fa fa-font', |
||||
|
attributes: { title: 'Create text element' }, |
||||
|
},{ |
||||
|
id: imc, |
||||
|
command: imc, |
||||
|
className: 'fa fa-picture-o', |
||||
|
attributes: { title: 'Create image element' }, |
||||
|
}], |
||||
|
},{ |
||||
|
id: 'options', |
||||
|
buttons: [{ |
||||
|
active: true, |
||||
|
id: swv, |
||||
|
className: 'fa fa-eye', |
||||
|
command: swv, |
||||
|
context: swv, |
||||
|
attributes: { title: 'View components' }, |
||||
|
},{ |
||||
|
id: expt, |
||||
|
className: 'fa fa-code', |
||||
|
command: expt, |
||||
|
attributes: { title: 'View code' }, |
||||
|
}], |
||||
|
}], |
||||
|
|
||||
// Editor model
|
// Editor model
|
||||
em : null, |
em : null, |
||||
|
|
||||
// Delay before show children buttons (in milliseconds)
|
// Delay before show children buttons (in milliseconds)
|
||||
delayBtnsShow : 300, |
delayBtnsShow : 300, |
||||
}; |
}; |
||||
}); |
}); |
||||
Loading…
Reference in new issue