[Question] Automatic resizing for oversized images
Question
If I drop an image that's larger than the canvas, then double click the top left anchor, the width is adjusted to the size of the canvas. Is there a way to programmatically call the same funciton, or would this need to be manually done in a listener? Is it also possible to fit to height as well, instead of just width?
Answers (2)
Ben how did you fix this?
@MatthewMariner I just had it add a max-width the size of the canvas. Wasn't able to figure out a better solution.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2278
[QUESTION]: Simplify dropping columns/rows
What I need is to simplify dropping elements in a way to speed up page creation. So if I drop a column and there is no parent row there, I...
Issue #861
[Question] Help adding images to the canvas
I've followed the docs and have been able to upload images. When I drag an image block (using the newsletter preset) and select an image fr...
Issue #1368
Resize canvas
Is there a way to have a dynamic resizing of the canvas? i.e not using the Device Manager, but having a drag and drop of the width, similar...
Issue #1707
Find images links in the editor
I am trying to integrate GrapesJs in reactJs. Can you please help me out with the below question w.r.t GrapesJs-React, • Is there a way to...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.