Commit Graph

1381 Commits

Author SHA1 Message Date
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
jos 1387169948 Improved error messaging for enums in code mode 2016-01-14 21:17:03 +01:00
jos e16770ebc2 Improved error messaging for enums 2016-01-14 21:10:30 +01:00
jos b26eb2ebe4 Fixed an issue with a horiziontal scrollbar popping with a popover on displayed on the right side 2016-01-14 20:04:45 +01:00
jos 5c51429abd Fixes in undo/redo of text input 2016-01-12 20:41:10 +01:00
jos e473209f1d Debouncing keyboard input implemented for fields too 2016-01-12 20:18:56 +01:00
jos f45fefe38f Implemented debouncing of keyboard input, resulting in much less history actions whilst typing 2016-01-12 18:11:56 +01:00
jos c0077250ef Fixed #222: editor throwing `onChange` events when switching mode 2016-01-12 17:25:33 +01:00
jos 68e22bb982 Keep brace json, searchbox, and theme-jsoneditor included in minimalist bundle 2016-01-12 16:42:55 +01:00
jos fbbdab9f02 Fixed #197: display an error in case of duplicate keys in an object 2016-01-12 16:28:40 +01:00
jos be40705cde Neatly resize the ace editor when validation errors are added/removed 2016-01-12 15:41:22 +01:00
jos 0690202f3a Implemented #183: display a checkbox left from boolean values, so you can easily switch between true/false. 2016-01-12 15:18:11 +01:00
jos 5a6ca406da Implemented support for JSON schema in mode text and code 2016-01-12 14:34:31 +01:00
jos 6463d717cf Fixed interfering shortcut keys: changed quick keys to select multiple fields from `Shift+Arrow Up/Down` to `Ctrl+Shift+Arrow Up/Down`. 2016-01-12 13:26:12 +01:00
jos 1d9d9c2594 Implemented method `setSchema` 2016-01-12 13:16:13 +01:00
jos a2b84b2dd8 Updated readme, docs, added example 2016-01-12 12:40:23 +01:00
jos 30eea90614 Added build script for minimalist version 2016-01-12 11:38:38 +01:00
jos 9daffa857d Move focus to invalid child node when clicking the error icon of it's parent nodes 2016-01-12 09:46:15 +01:00
jos 528c25e77a Removed util.log 2016-01-12 09:24:21 +01:00