Browse Source

Update grapesjs and add link block

pull/2301/head
Artur Arseniev 10 years ago
parent
commit
2a0068c72e
  1. 26
      js/grapes.min.js
  2. 19
      js/grapesjs-preset-webpage.js

26
js/grapes.min.js

File diff suppressed because one or more lines are too long

19
js/grapesjs-preset-webpage.js

@ -54,7 +54,24 @@ grapesjs.plugins.add('gjs-preset-webpage', (editor, opts) => {
}
});
/****************** BLOCKS *************************/
var bm = editor.BlockManager;
bm.add('link-block', {
label: 'Link Block',
attributes: {class:'fa fa-link'},
content: {
type:'link',
editable: false,
droppable: true,
style:{
display: 'inline-block',
padding: '5px',
'min-height': '50px',
'min-width': '50px'
}
},
});
/****************** BUTTONS *************************/

Loading…
Cancel
Save