Firefox - designMode: disable image resizing handles
问题 How can I prevent the user from being able to resize an image in designMode? (disable the handles when image is clicked) 回答1: Say you turn contentEditable on like this: document.body.contentEditable = true; All you have to do is turn it off for all (or some) images. var imgs = document.getElementsByTagName("IMG"); for (var i = 0; i < imgs.length; ++i) { imgs[i].contentEditable = false; } 回答2: This works fine for Firefox: document.execCommand("enableObjectResizing", false, false); For IE i've