Merge pull request #495 from meirotstein/textnode_newline_bug

use escaped field text for tree node
This commit is contained in:
Jos de Jong 2017-12-24 13:30:42 +01:00 committed by GitHub
commit 14f0956d7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1158 additions and 1988 deletions

3164
dist/jsoneditor.js vendored

File diff suppressed because one or more lines are too long

View File

@ -899,7 +899,7 @@ treemode._updateTreePath = function (pathNodes) {
}
function getName(node) {
return node.field || (isNaN(node.index) ? node.type : node.index);
return node.fieldInnerText || node.field || (isNaN(node.index) ? node.type : node.index);
}
};