Firefox - designMode: disable image resizing handles

dEEf picture dEEf · Nov 14, 2008 · Viewed 13.8k times · Source

How can I prevent the user from being able to resize an image in designMode? (disable the handles when image is clicked)

Answer

nmb.ten picture nmb.ten · Jun 12, 2010

This works fine for Firefox:

document.execCommand("enableObjectResizing", false, false);

For IE i've used:

image.attachEvent("onresizestart", function(e) { e.returnValue = false; }, false);