Commit Graph

699 Commits

Author SHA1 Message Date
tdakanalis 3c73a9e160 -Removed some mistakenly committed debugger statemets. 2016-04-11 10:00:15 +03:00
tdakanalis a785de2930 -Fixed some accidentally removed logic. 2016-04-11 09:56:16 +03:00
tdakanalis 1dadc5f465 -Removed the ability to use the non standard json schema element 'enumLabels' in order to define the labels of the drop downs. The values will be used instead. This feature will be re-implemented using the tree editor's options. 2016-04-11 09:42:47 +03:00
jos 42fe532975 Released v5.4.0 2016-04-09 21:00:33 +02:00
jos ea473c54aa Fixed #289: Some CSS breaking when using the editor in combination with materialize.css or bootstrap 2016-04-09 20:55:07 +02:00
jos 96304f83a7 Fixed #290: `setText()` not working in mode text or code 2016-04-09 20:11:41 +02:00
jos 4950d6fc39 Changed all code to strict mode (`'use strict'`) 2016-04-09 20:10:18 +02:00
jos 1d97297486 Upgraded all dependencies 2016-04-09 20:06:29 +02:00
tdakanalis 30c7f7c8f3 -Fixed the re-rendering of the drop down element when the field name changes 2016-04-07 10:51:49 +03:00
tdakanalis d1d9ce6135 Merge branch 'develop' into feature/enumAsDropDownMenus 2016-04-07 09:08:52 +03:00
jos 2a2ae53562 Released v5.3.0 2016-04-06 09:25:05 +02:00
jos e7b7362fc2 Sorting object keys or array items via the context menu is now also naturally sorted (see #288) 2016-04-06 09:15:38 +02:00
jos a97be17ed3 Fixed #286: Calling `get()` or `getText()` caused the editor to lose focus. A regression introduced in v5.2.0 2016-04-04 22:13:19 +02:00
jos e4006e5581 Updated history 2016-04-04 21:51:39 +02:00
Jos de Jong 88be991ba3 Merge pull request #288 from edufelipe/sort-obj-keys
Add option to sort objects keys alphabetically
2016-04-04 21:50:40 +02:00
jos f18d4519f8 * Renamed Node.getPath to Node.getNodePath, and renamed Node.getFieldsPath to Node.getPath
* Fixed Node.getPath for Arrays
2016-04-04 21:44:08 +02:00
jos 8f7b656c3c Extended `util.parsePath` with support for all '*' 2016-04-04 21:28:23 +02:00
Eduardo Felipe Castegnaro 4819dcf250 Add option to sort objects keys alphabetically
The new option is disabled by default, but when enabled makes editing
large documents in tree or form mode much easier.
2016-04-01 00:22:32 -03:00
tdakanalis b5f43a7257 Handling Of Composite Types
Made a small fix in the handling of the oneOf, anyOf and allOf composite types
2016-03-31 15:32:44 +03:00
tdakanalis dd679542af Value Field Display Policy
When the enum is in a composite type then show both the select element and the edit value field, otherwise display only the select element.
2016-03-31 15:01:29 +03:00
tdakanalis 24c9440bbb Fixed the _getJsonObject
Added handling for the change event in the select input field
2016-03-31 14:37:28 +03:00
tdakanalis 266faef8a9 Display Enums As Drop Downs
The tree editor displays now the enum types with a drop down. The only you have to do is to define the enum values in the json schema and optionally the enumLabels with the labels for the respective values.

Example:

"properties": {
    "fruits": {
        "enum": ['orange', 'apple'],
        "enumLabels": ['Orange', 'Apple']
    }
}
2016-03-24 16:58:25 +02:00
jos f0afcea97d Fixed #283: improved JSON schema error message in case of no
additionalProperties
2016-03-24 08:43:26 +01:00
jos aeca44405e Released v5.2.0 2016-03-20 18:19:13 +01:00
jos bfad6f5e7b Added some test pages 2016-03-20 15:56:28 +01:00
jos d08e35797b Fixed #280: Some CSS issues when used in combination with bootstrap 2016-03-20 15:55:38 +01:00
jos a78b2ae57a Fixed #278: Implemented method `editor.destroy()` to properly cleanup the editor 2016-03-20 14:54:47 +01:00
jos 61c6f21f90 Fixed #268: JSONEditor now trims text in fields and values 2016-03-08 20:09:43 +01:00
jos 898747b403 Released version 5.1.5 2016-02-15 20:36:39 +01:00
jos 0432bd95f2 Fixed #272: Checkbox for boolean values visible in view mode 2016-02-15 20:35:19 +01:00
jos fdfbd02ff7 Released v5.1.4 2016-02-13 11:47:51 +01:00
jos 29b7de0256 Released v5.1.4 2016-02-13 11:47:10 +01:00
jos 1f64fe6e9c Fixed broken example 04_load_and_save.html. See #265 2016-02-09 10:05:11 +01:00
jos 8be330393a Released version 5.1.3 2016-02-03 08:14:46 +01:00
jos 2a4fa900e6 Fixed #264: Clicking items in the context menu not working on Firefox 2016-02-01 20:39:50 +01:00
jos 69f106a911 Released version 5.1.2 2016-01-21 20:01:49 +01:00
Jos de Jong 419880dba8 Merge pull request #260 from onip/browserify_fix
browserify build fix
2016-01-21 19:49:55 +01:00
Andrea Pinazzi 3201824d39 require Ajv module instead of Ajv compiled file 2016-01-21 16:05:49 +01:00
Andrea Pinazzi 7645c09f94 use json-loader as Ajv require some json files 2016-01-21 16:05:05 +01:00
jos ec2511793a Fixed #259: when having a JSONEditor inside an HTML form, clicking an entry in the context menu did submit the form 2016-01-19 21:52:52 +01:00
jos f4492de1ca Fixed clicking format/compact not triggering an onChange event 2016-01-17 15:24:46 +01:00
jos 8ec471b6dc Improvements in sanitizing invalid JSON 2016-01-16 14:49:04 +01:00
jos 5a5c04e48f Released version 5.1.1 2016-01-16 10:55:45 +01:00
jos ae2f4e923f Fixed #257: Improving error messages for enum errors failed when the schema contains references. 2016-01-16 10:46:43 +01:00
jos 42acb71907 Updated history 2016-01-15 20:45:53 +01:00
Jos de Jong 178610a76c Merge pull request #256 from MiroHibler/develop
Error if 'search' option set to false
2016-01-15 20:43:52 +01:00
Miroslav Hibler ca21876fa3 Fixed error "Cannot read property 'clear' of undefined" thrown if search option set to `false`. 2016-01-15 20:22:39 +01:00
Miroslav Hibler 23c580a2ec Merge pull request #1 from josdejong/master
Fixed #255: Removed wrong console warning about the option `search`
2016-01-15 19:49:45 +01:00
jos b4c02f9a3f Fixed #255: Removed wrong console warning about the option `search` 2016-01-15 19:41:51 +01:00
jos 5d3b005dc3 Released version 5.1.0 2016-01-14 21:26:39 +01:00