How to remove resizig handlers around image in IE using javascript?

I have a small editor on my website and I can add an image to it. I can resize images using jQuery (Resizable) plugin. For this reason, I had to disable image resizing borders. In Firefix, I did this with this:

 execCommand("enableObjectResizing", false, false);

and it worked fine. How can I do something similar for IE?

Thanks in advance

+3
source share
2 answers

You cannot, I'm afraid. The only way to include an image without resizing in an editable element in IE is to set it as the background image of the element and make sure that the element does not have a layout .

+1

IE11, (javascript):

function controlselectHandler(evt) {
    evt.preventDefault();
}
document.body.addEventListener('mscontrolselect', controlselectHandler);

. - , css.

, IE.

0

Source: https://habr.com/ru/post/1789189/


All Articles