Permitting moving only of >

前端 未结 2 952
野性不改
野性不改 2021-01-26 17:39

I am struggling to achieve my desired behaviour with a div marked as contentEditable. I wish to allow the user to move an img around withi

相关标签:
2条回答
  • 2021-01-26 18:39

    In some browsers (notably Firefox but not IE), you can disable resize handles using document.execCommand() with the enableObjectResizing command:

    document.execCommand("enableObjectResizing", null, false);
    
    0 讨论(0)
  • 2021-01-26 18:43

    You could implement a draggable effect using JQuery ui on you img.

    0 讨论(0)
提交回复
热议问题