Disabled default drag-drop in Firefox designMode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gilan
    New Member
    • Apr 2008
    • 1

    Disabled default drag-drop in Firefox designMode

    I'm building a javascript WYSIWYG editor using designMode. My main problem right now is that I'm trying to create dragging functions for certain classes of divs, but Firefox's own designMode drag-drop functionality keeps getting in the way.

    I managed to disable the similarly-annoying resizing feature using:
    execCommand("en ableObjectResiz ing", false, "false")

    But I can't seem to find something equivalent to disable drag-drop. If it can be disabled on individual divs, or a class of divs, that would be the best. But even a way to disable it globally would be an improvement. I'd also like to get rid of that annoying four-arrows icon that shows when I'm editing text in a positioned div.

    Please help.

    -Gilan
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    I've not tried it, so no idea if it will work, but you can try setting document.onmous edown to null which would normally start the drag functionality.

    Comment

    Working...