There is a div: <div contenteditable="true"></div>
in IE(7,8,9), then I click a button to insert an image with using the document.execCommand('insertImage')
method. Then the image was inserted. Until now there is no problem.
But the inserted image is selected with resizable handlers. How could I cancel the selection and refocus behind the image?
Thanks.
$button.click(function(){
document.execCommand("insertImage",false,'url');
});