I have a question about the standard image plugin for TinyMCE. You can read about it here: link. To describe the issue, please try the following:
Code with tinymce v6.
-
You will see an image inserted twice. One of them has the style “max-width:200px;”
-
Right-click on the first image.
-
Click “Image.”
-
You will see the “Image” window with empty attributes width and height.
-
Simply click Save.
-
If you open the “Image” window again, you will see that the width and height attributes have been automatically calculated. Issue: they are calculated from the styles, not from the actual dimensions of the image.
-
Do the same with the second image. You will see that the width and height are different, although it is the same image with different styles.
What I want: for the reduced image, the width and height attributes to be determined from the actual dimensions of the image, not from the styles.
Why do I need this: I want to see the images in the editor reduced. Large images are inconvenient when designing an article. So I added CSS to my website to reduce the images in the editor. But when I edit image properties, small width and height attributes are applied to it. And after publishing, they remain small, which I don’t need.