Good afternoon. I think I started in this forum with my left foot, so I try again. If I do not understand now, I will not bother anymore.
As Travv indicated, I reformulate my question:
When I use execCommand insertImage, I would like the image inserted in a text field to have other measures in pixels, for example if the original image is 200 x 200 px, it is possible to send the URL of the image to the insertImage command and other measures? (for example, 100 x 100 px).
I tried the following:
var img;
if(!(img=prompt('ingresar url','http://')))return;
img.width=100+'px';
img.height=80+'px';
document.execCommand('InsertImage',false,img);
But although I do not get an error, it does not alter the image either.
I await your answers, thank you very much.