image icon indicating copy to clipboard operation
image copied to clipboard

Passing the data into editor ignore stretched image

Open MrSimmmons opened this issue 6 years ago • 2 comments

If you want to pass the data from editor JS into the data: value of the editor config, it ignores the stretched value. Im guessing that this is an issue with the render function of this module, rather than an issue with the main editor JS API

See CodePen: https://codepen.io/MrSimmons/pen/QWWYVvy If you change the boolean of stretched in the data, you can see that the image doesn't resize in the editor. the image in the editor only resizes when you then toggle the stretched value off then on again in the editor.

MrSimmmons avatar Nov 20 '19 00:11 MrSimmmons

Update: It seems that it applies the full with to the block above it if there is one.

MrSimmmons avatar Nov 27 '19 04:11 MrSimmmons

Sad this issue never got attention It's still present to this day, loading any image with stretched set to true leaves the image unstretched and stretches the block above it

OneLoneFox avatar Apr 12 '21 20:04 OneLoneFox