Customize image resizing
If i want to limit resizing an image to only specific dimensions, how can i do that? Also is it possible to enable resizing only from the bottom right corner and disable from the other corners and points?
You can use this options for the resizable property of components
How can I update these properties if I'm using the grapesjs-preset-webpage?
How can I update these properties if I'm using the grapesjs-preset-webpage?
You can always update a component type (but do it as a plugin)
editor.DomComponents.addType('image', {
model: {
defaults: {
resizable: {
tl: 0, // Top left
tc: 0, // Top center
tr: 0, // Top right
cl: 0, // Center left
bl: 0, // Bottom left
}
}
}
})
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.