Released v5.8.0
This commit is contained in:
parent
5559b0d417
commit
a6bd4646ca
|
@ -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
|
@ -926,4 +926,35 @@ 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;
|
||||||
}
|
}
|
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
File diff suppressed because one or more lines are too long
|
@ -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": [
|
||||||
|
|
|
@ -777,23 +777,25 @@ exports.textDiff = function textDiff(oldText, newText) {
|
||||||
return {start: start, end: newEnd};
|
return {start: start, end: newEnd};
|
||||||
};
|
};
|
||||||
|
|
||||||
// Polyfill for array remove
|
if (typeof Element !== 'undefined') {
|
||||||
(function (arr) {
|
// Polyfill for array remove
|
||||||
|
(function (arr) {
|
||||||
arr.forEach(function (item) {
|
arr.forEach(function (item) {
|
||||||
if (item.hasOwnProperty('remove')) {
|
if (item.hasOwnProperty('remove')) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
Object.defineProperty(item, 'remove', {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
writable: true,
|
||||||
|
value: function remove() {
|
||||||
|
if (this.parentNode != null)
|
||||||
|
this.parentNode.removeChild(this);
|
||||||
}
|
}
|
||||||
Object.defineProperty(item, 'remove', {
|
});
|
||||||
configurable: true,
|
|
||||||
enumerable: true,
|
|
||||||
writable: true,
|
|
||||||
value: function remove() {
|
|
||||||
if (this.parentNode != null)
|
|
||||||
this.parentNode.removeChild(this);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Polyfill for startsWith
|
// Polyfill for startsWith
|
||||||
|
|
Loading…
Reference in New Issue