I was building an WYSIWYG editor for my website. I want to be able to resize images while user is inserting image into text. How to do it ? This code is not working.
this the code what i used.
function iImage(){
var imgSrc = prompt('Enter image location', '');
imgSrc.style.height='100px';
imgSrc.style.width='50px';
if(imgSrc != null){
richTextField.document.execCommand('insertimage', false, imgSrc);
}
}