Reputation: 2043
bind("rename.jstree", function (event, data) {
$("#treeDiv").jstree._focused().get_selected().rename();
)}
Is not working while I am trying to rename a node.
If anyone knows please let me know.
Upvotes: 0
Views: 3181
Reputation: 2344
I found that if you put styling tags such as <b> </b>
in the <li>
item it prevents the rename. Make sure any styling is applied through css if this is the problem, and that should fix it. Also try using $("#demo1").jstree("rename",node);
Upvotes: 0
Reputation: 1614
Try
.bind("rename_node.jstree", function (NODE, REF_NODE) {
// Do your operation
})
Upvotes: 3