Publish v5.26.2

This commit is contained in:
jos 2018-11-13 20:39:02 +01:00
parent db8652baa6
commit 9ac82e24d2
11 changed files with 20 additions and 14 deletions

View File

@ -3,6 +3,12 @@
https://github.com/josdejong/jsoneditor
## 2018-11-13, version 5.26.2
- Fixed dragging and selecting multiple nodes not working
(regression introduced in `v5.26.1`).
## 2018-11-13, version 5.26.1
- Fixed `.update()` throwing an exception when replacing a JSON object

View File

@ -24,7 +24,7 @@
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <wjosdejong@gmail.com>
* @version 5.26.1
* @version 5.26.2
* @date 2018-11-13
*/
(function webpackUniversalModuleDefinition(root, factory) {
@ -2633,7 +2633,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
else {
// filter mouse events in the contents part of the editor (not the main menu)
if (event.type === 'mousedown' && util.hasParentNode(event.target, editor.content)) {
if (event.type === 'mousedown' && util.hasParentNode(event.target, this.content)) {
this.deselect();
if (node && event.target === node.dom.drag) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/jsoneditor.js vendored
View File

@ -24,7 +24,7 @@
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <wjosdejong@gmail.com>
* @version 5.26.1
* @version 5.26.2
* @date 2018-11-13
*/
(function webpackUniversalModuleDefinition(root, factory) {
@ -31275,7 +31275,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
else {
// filter mouse events in the contents part of the editor (not the main menu)
if (event.type === 'mousedown' && util.hasParentNode(event.target, editor.content)) {
if (event.type === 'mousedown' && util.hasParentNode(event.target, this.content)) {
this.deselect();
if (node && event.target === node.dom.drag) {

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

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "5.26.1",
"version": "5.26.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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

View File

@ -1182,7 +1182,7 @@ treemode._onEvent = function (event) {
}
else {
// filter mouse events in the contents part of the editor (not the main menu)
if (event.type === 'mousedown' && util.hasParentNode(event.target, editor.content)) {
if (event.type === 'mousedown' && util.hasParentNode(event.target, this.content)) {
this.deselect();
if (node && event.target === node.dom.drag) {

View File

@ -77,7 +77,7 @@
"url": "http://jsoneditoronline.org"
};
editor = new JSONEditor(container, options, json);
editorTest = new JSONEditor(container, options, json);
console.log('json', json);
console.log('string', JSON.stringify(json));