mirror of https://github.com/artf/grapesjs.git
6 changed files with 45 additions and 79 deletions
@ -1,40 +1,11 @@ |
|||||
module.exports = { |
module.exports = { |
||||
|
|
||||
stylePrefix : 'rte-', |
stylePrefix : 'rte-', |
||||
toolbarId : 'toolbar', |
|
||||
|
|
||||
// If true, moves the toolbar below the element when the top canvas
|
// If true, moves the toolbar below the element when the top canvas
|
||||
// edge is reached
|
// edge is reached
|
||||
adjustToolbar: 1, |
adjustToolbar: 1, |
||||
|
|
||||
// Default toolbar commands
|
// Default RTE actions
|
||||
commands : [{ |
actions: ['bold', 'italic', 'underline', 'strikethrough', 'link'], |
||||
command: 'bold', |
|
||||
title: 'Bold', |
|
||||
class: 'fa fa-bold', |
|
||||
},{ |
|
||||
command: 'italic', |
|
||||
title: 'Italic', |
|
||||
class: 'fa fa-italic', |
|
||||
},{ |
|
||||
command: 'underline', |
|
||||
title: 'Underline', |
|
||||
class: 'fa fa-underline', |
|
||||
},{ |
|
||||
command: 'strikethrough', |
|
||||
title: 'Strikethrough', |
|
||||
class: 'fa fa-strikethrough', |
|
||||
group: 'format' |
|
||||
},{ |
|
||||
command: 'insertHTML', |
|
||||
title: 'Link', |
|
||||
class: 'fa fa-link', |
|
||||
args: '<a class="link" href="">${content}</a>', |
|
||||
}/*,{ |
|
||||
command: 'fontSize', |
|
||||
options: [ |
|
||||
{name: 'Huge', value: '7'}, |
|
||||
{name: 'Normal', value: '5'}, |
|
||||
{value: '1'} |
|
||||
] |
|
||||
}*/], |
|
||||
}; |
}; |
||||
|
|||||
Loading…
Reference in new issue