Ok, I looked into it and I think it is working. It seems that crrm
plugin is no more available for jstree
AND you can achieve your result using only dnd
plugin using following self-explanatory code
$('#tree').jstree({
core: {
check_callback: function (op, node, node_parent) {
return op == 'move_node' ? node_parent.id.indexOf('not') === -1 : true;
}
},
dnd: {
is_draggable: function (x) {
return x[0].id.indexOf('not') === -1;
}
},
"plugins": ["dnd"]
});
This code prevents moving of said nodes and also prevents moving of other nodes into them.