Fixed broken multi-selection

This commit is contained in:
jos 2017-07-24 10:07:00 +02:00 committed by Meir Rotstein
parent 1ae040243b
commit 1504cfc216
2 changed files with 15 additions and 0 deletions

View File

@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor
## not yet released, version 5.9.3
- Fixed broken multi-selection.
## 2017-07-13, version 5.9.2
- Fixed a bug in the JSON sanitizer.

View File

@ -372,6 +372,16 @@ Node.prototype.getLevel = function() {
return (this.parent ? this.parent.getLevel() + 1 : 0);
};
/**
* Get jsonpath of the current node
* @return {Node[]} Returns an array with nodes
*/
Node.prototype.getNodePath = function () {
var path = this.parent ? this.parent.getNodePath() : [];
path.push(this);
return path;
};
/**
* Create a clone of a node
* The complete state of a clone is copied, including whether it is expanded or