Released v5.8.0

This commit is contained in:
jos 2017-07-02 14:32:00 +02:00
parent 5559b0d417
commit a6bd4646ca
11 changed files with 975 additions and 129 deletions

View File

@ -3,7 +3,7 @@
https://github.com/josdejong/jsoneditor https://github.com/josdejong/jsoneditor
## not yet released, version 5.8.0 ## 2017-07-02, version 5.8.0
- Implemented support for autocompletion. Thanks @israelito3000. - Implemented support for autocompletion. Thanks @israelito3000.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

31
dist/jsoneditor.css vendored
View File

@ -927,3 +927,34 @@ table.jsoneditor-search button.jsoneditor-previous {
table.jsoneditor-search button.jsoneditor-previous:hover { table.jsoneditor-search button.jsoneditor-previous:hover {
background-position: -148px -49px; background-position: -148px -49px;
} }
div.jsoneditor div.autocomplete.dropdown {
position: absolute;
background: white;
box-shadow: 2px 2px 12px rgba(128, 128, 128, 0.3);
border: 1px solid #d3d3d3;
z-index: 100;
overflow-x: hidden;
overflow-y: auto;
cursor: default;
margin: 0;
padding-left: 2pt;
padding-right: 5pt;
text-align: left;
outline: 0;
font-family: droid sans mono, consolas, monospace, courier new, courier, sans-serif;
font-size: 10pt;
}
div.jsoneditor div.autocomplete.dropdown .item {
color: #333;
}
div.jsoneditor div.autocomplete.dropdown .item.hover {
background-color: #ddd;
}
div.jsoneditor div.autocomplete.hint {
color: #aaa;
top: 4px;
left: 4px;
}

486
dist/jsoneditor.js vendored

File diff suppressed because one or more lines are too long

2
dist/jsoneditor.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "jsoneditor", "name": "jsoneditor",
"version": "5.7.2", "version": "5.8.0",
"main": "./index", "main": "./index",
"description": "A web-based tool to view, edit, format, and validate JSON", "description": "A web-based tool to view, edit, format, and validate JSON",
"tags": [ "tags": [

View File

@ -777,6 +777,7 @@ exports.textDiff = function textDiff(oldText, newText) {
return {start: start, end: newEnd}; return {start: start, end: newEnd};
}; };
if (typeof Element !== 'undefined') {
// Polyfill for array remove // Polyfill for array remove
(function (arr) { (function (arr) {
arr.forEach(function (item) { arr.forEach(function (item) {
@ -794,6 +795,7 @@ exports.textDiff = function textDiff(oldText, newText) {
}); });
}); });
})([Element.prototype, CharacterData.prototype, DocumentType.prototype]); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
}
// Polyfill for startsWith // Polyfill for startsWith