我需要使用“jstree” jQuery插件来移除上下文菜单中的编辑选项。请告诉我如何移除它。
我的代码如下:
var contextualMenuSample = function() {
$("#tree_3").jstree({
"core" : {
"themes" : {
"responsive": false
},
// so that create works
"check_callback" : true,
},
"types" : {
"default" : {
"icon" : "fa fa-folder icon-state-warning icon-lg"
},
"file" : {
"icon" : "fa fa-file icon-state-warning icon-lg"
}
},
"state" : { "key" : "demo2" },
"plugins" : [ "contextmenu", "dnd", "state", "types" ],
"contextmenu" : {
"items" :{
"Edit": false
}
}
});
}