Commit Graph

1575 Commits

Author SHA1 Message Date
jos ffe727849e Fixed #566: transform function broken, regression since `v5.20.0` 2018-08-17 20:20:36 +02:00
jos eb56fc38b4 Released v5.23.0 2018-08-15 12:29:56 +02:00
jos f11f763171 Implemented support for async custom validation 2018-08-15 12:21:27 +02:00
jos 620c5e0b89 Add className `jsoneditor-validation-error` to nodes with a validation error 2018-08-15 11:02:54 +02:00
jos d57beb9f47 Minor refactoring 2018-08-15 10:55:34 +02:00
jos 8bb2962505 Implemented support for custom validation 2018-08-15 10:48:51 +02:00
jos ed81af02ec Release v5.22.0 2018-08-13 20:57:11 +02:00
jos 9dec9617b1 Updated history 2018-08-13 20:54:47 +02:00
jos 482b9a74a2 Cleanup comments and update number of example 2018-08-13 20:53:32 +02:00
jos 13bb4d7bb1 Merge branch 'extendEvent' of https://github.com/cristinabarrantes/jsoneditor into cristinabarrantes-extendEvent
# Conflicts:
#	package.json
#	src/js/JSONEditor.js
2018-08-13 20:53:03 +02:00
jos c7a29d74c5 Release v5.21.0 2018-08-12 13:10:20 +02:00
jos 260a428249 Fix #562: allow `$` character in property names of of a JSON schema 2018-08-12 13:06:31 +02:00
jos ae3fb78486 Update history 2018-08-12 12:43:35 +02:00
Meir Rotstein d387de366a Show validation errors inline in code mode (#560)
* util.getPositionForPath

* utils.getPositionForPath - allow multiple paths

* code mode - show validation errors on gutter

* show all validation errors with scroll indication on text mode

* import json-source-map in favor of getting validation errors location

* revert dist change

* add statusbar indication for validation errors

* reset valodation errors indication  + code clean

* change display indication for validationErrorIndication

* extend schema validatin example with additional errors to demonstrate recent changes

* minor css change
2018-08-12 12:41:02 +02:00
jos 6a6c34fd00 Release `v5.20.0` 2018-08-10 13:27:32 +02:00
jos 03543883b8 Fixed transform undo/redo losing order of properties 2018-08-10 13:15:45 +02:00
Cristina bb699e1473 Update documentation 2018-08-10 12:29:25 +02:00
jos ea4b064ab7 Initialize field when moving item from array to object 2018-08-10 08:52:34 +02:00
jos 5f749e1f6e Fix navigation path not correct when a node in an Array still has a value 2018-08-09 18:28:05 +02:00
jos eb9f250725 Fixed `clone` not copying `previousField` and `previousValue` 2018-08-09 18:18:23 +02:00
jos 672b6491cd Fixed restoring DOM selection and another bug in `moveNodes` 2018-08-09 18:13:49 +02:00
jos d81e2b8dab Fixed another bug in `moveNodes` 2018-08-09 18:05:13 +02:00
jos 2ee39cbca8 More fixes in `moveNodes` 2018-08-09 17:54:54 +02:00
jos 5686e2003a More fixes for moveNodes 2018-08-09 15:11:38 +02:00
jos 751c3b5b32 Don't focus on node when there are multiple selected 2018-08-09 13:53:02 +02:00
jos 07f04be182 Fixes in undo/redo of `moveNodes` action 2018-08-09 13:02:12 +02:00
jos 872bd2d186 Fix restoring selection (store serializable path instead of DOM element) 2018-08-09 11:52:12 +02:00
jos 476d44d11c Store internal path in history to prevent issues with duplicates 2018-08-09 11:26:47 +02:00
jos 3a632cf6f9 Revert clone method, gives issues with duplicate 2018-08-09 10:27:18 +02:00
jos b93ba1106c Fixed losing field names on undo/redo moved nodes 2018-08-09 10:16:56 +02:00
jos f47d17e377 Fixed inserting new Array/Object broken 2018-08-09 10:07:09 +02:00
jos 48b73cafcf Fixed a bug in undo/redo moving nodes 2018-08-09 09:47:14 +02:00
jos 0cebd8f618 Fixes in history 2018-08-08 15:00:43 +02:00
jos 3e518e4742 Merge branch 'update_json' into update_json_fix_history
# Conflicts:
#	src/js/Node.js
2018-08-08 11:00:27 +02:00
jos d89eaee231 Add missing attach/detach methods 2018-08-08 10:58:40 +02:00
jos d85419b2c7 Create helper functions to detach/attach a node to DOM 2018-08-08 10:54:35 +02:00
jos b0acd3f1cd Fixed menu buttons "Sort" and "Transform" being available in modes `view` and `form` 2018-08-07 13:52:23 +02:00
jos 73bec80df5 Fixed validation not being executed after `update` in tree mode 2018-08-07 13:46:18 +02:00
jos e794943e20 Fixed `onChange` events being fired during `update` and `updateText` 2018-08-07 13:43:36 +02:00
jos 393dc3f809 Implemented advanced react example and some minor improvements 2018-08-07 13:32:41 +02:00
jos 983fafdf9c Implemented options `onChangeJSON(json)` and `onChangeText(jsonString)` 2018-08-07 11:03:27 +02:00
jos d1ac1cb694 Fixed bug in deepEqual not handling duplicate fields of an object 2018-08-07 10:22:55 +02:00
jos 54cae20630 Implement a simple React demo 2018-08-06 17:10:07 +02:00
jos 235410c59f Implemented an example synchronizing two editors 2018-08-06 14:48:40 +02:00
jos d49518a9ba Describe new methods `update` and `updateText` in the docs 2018-08-06 14:39:21 +02:00
jos a7da2349e5 Order methods in docs alphabetically 2018-08-06 14:30:44 +02:00
jos 3a439ba795 Some refactoring 2018-08-06 14:24:24 +02:00
jos 338df99410 Fix undo/redo (WIP) 2018-08-06 13:36:35 +02:00
jos ab8e6322d2 Handle undo/redo when contents is updated 2018-08-06 12:03:13 +02:00
jos 9ae30ea63d Update only when there are changes in the JSON 2018-08-06 11:14:27 +02:00