开发者

jstree rename node problem

bind("rename.jstree", function (event, data) { 
$("#treeDiv").jstree._focused().get_selected().rename(); 
)} 

Is not working while I am trying to rename开发者_C百科 a node.

If anyone knows please let me know.


Try

.bind("rename_node.jstree", function (NODE, REF_NODE) {
// Do your operation
})


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);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜