jsTree - disable drag option

Its Simple.Do not add dnd option in plugins

This includes drag & drop functionality

"plugins": ["themes","html_data","dnd","ui","types"]

This disables drag & drop functionality

"plugins": ["themes","html_data","ui","types"]


simply add this:

"default" : {
    draggable : false
},

it should be in the types: section.


Not adding the 'dnd' to the types does work. You can also use the property on the pluggin, this will disable all moving.

       dnd: {
            "is_draggable": function (node) {
                return false;  // flip switch here.
            }
        },