Grapesjs: Rezize block with drag and drop

Created on 9 Mar 2020  路  7Comments  路  Source: artf/grapesjs

Hello i trying the absolute mode ! its realy good but to be complet with this designer mode did you plan to add rezize module via drag and drop ?
regards

All 7 comments

@micker you must specify resizable:true on your component type definition.
Cheers!

ok i will check it thanks
did you have a demo ?

@micker

 editor.DomComponents.addType('image', {
            model: {
                defaults: {
                    resizable:true,
                    traits: ['src']
                }
            }
        })

Cheers!

ok cool thanks !

i try this

editor.BlockManager.add(\'fcfield\', {
                label: \'Flexicontent Field\',
                category: \'Data\',
                content: \'<div style="display: inline-block">{flexi_field:FIELDNAME  item:{{fc-item-id}}  method:display}</div>\',
                select: true,
                activate: true,
                rezizable:true,
                attributes: { class:\'fc-iblock fa fa-database\' },
});

but i didn't find how to rezize ...

@micker if you want to go with blocks, you have to do it like this:

editor.BlockManager.add('test', {
    label: 'test',
    content: '<div data-gjs-resizable="true">content</div>',
})
Cheers!

very cool works thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Snarkly picture Snarkly  路  3Comments

FlashPapa picture FlashPapa  路  3Comments

kosirm picture kosirm  路  3Comments

faizansaiyed picture faizansaiyed  路  3Comments

ionic666 picture ionic666  路  3Comments