Commit Graph

506 Commits

Author SHA1 Message Date
jos 358ef3086c Fixed index of Array items not being updated after sorting 2018-05-03 11:22:58 +02:00
Meir Rotstein bbff682533 remove comment 2018-04-26 22:22:53 +03:00
Meir Rotstein 1a66dbcedd (1) onTextSelectionChange: change params order (2) getSelection: empty selection 2018-04-26 22:19:35 +03:00
Meir Rotstein e80a840a33 additional fixes + docu 2018-04-22 10:02:17 +03:00
Meir Rotstein ea939591fe change treemode.getNodesByRange to return a list of SerializableNode 2018-04-22 10:01:57 +03:00
Meir Rotstein 1579e787bf CR Fix: remove `field` from SerializedNode 2018-04-19 09:24:07 +03:00
Meir Rotstein dfc03fa4b5 selection API - return selection accrding to direction for both tree and text modes 2018-04-17 23:54:58 +03:00
Meir Rotstein e1f91cb1ac some minor fixes & docu 2018-04-02 11:18:32 +03:00
Meir Rotstein 3b186633e7 Merge branch 'develop' of https://github.com/josdejong/jsoneditor into get_caret_position
# Conflicts:
#	docs/api.md
#	src/js/Node.js
#	src/js/treemode.js
2018-04-02 02:07:53 +03:00
Meir Rotstein e57c292f30 Add treenode.getNodesByRange 2018-04-02 02:01:22 +03:00
Meir Rotstein 39e8d36f72 CR Fix: tree selection - use serializable node as parameters 2018-04-02 01:40:10 +03:00
Meir Rotstein 7e90161057 CR fix: setSelection signature and doc change 2018-03-01 23:05:27 +02:00
Meir Rotstein fb85ffdd5b CR fix - remove 'Node' from node selection function signatures 2018-03-01 22:49:08 +02:00
Cyrille Meichel 04cff49f89 jsoneditor-icons.svg is explicitly in a relative path to be compliant with webpack plugin "file-loader" 2018-02-28 08:40:30 +01:00
jos 9fb29a644d Refactor to ES5 code. Some updates in the docs 2018-02-25 19:54:59 +01:00
Jos de Jong 6f4729885b
Merge pull request #514 from mariohmol/master
Basic translate
2018-02-25 19:43:56 +01:00
Jos de Jong 4e6f43412c
Merge pull request #510 from crispthinking/parent-error-cache
cache parent errors
2018-02-25 17:31:23 +01:00
Mario Mol 2f13f7fa54 Example incuding a new language and new language created based on english, that means that, if a key is missing in translations that will be english 2018-02-21 14:17:01 -03:00
Mario Mol 466c2c548b Support for overriding translations and for setting one language 2018-02-21 13:58:50 -03:00
James Garbutt e75043e51d use first node as context for parent errors 2018-02-21 15:06:32 +00:00
Mario Mol 40d577732d better performance when getting locale 2018-02-20 09:24:29 -03:00
Mario Mol c42bf9dd4c Basic translate starting up with en and pt-br 2018-02-20 00:00:25 -03:00
43081j 106a75c46a refactor error node computation 2018-02-13 19:38:26 +00:00
James Garbutt 00e99a791a cache parent errors 2018-02-12 19:48:01 +00:00
43081j bfbd334b71 allow null autocomplete results 2018-02-12 19:43:04 +00:00
James Garbutt 803daf4253 pass empty string when no previous field value 2018-02-09 10:21:10 +00:00
jos 4c8c4d4a02 Fixed a positioning issue with JSON Schema errors in text/code mode 2018-02-07 12:16:00 +01:00
Meir Rotstein ad15c8a85f some minor changes 2018-01-25 17:57:01 +02:00
Meir Rotstein 84c015ee93 setNodeSelection - input test 2018-01-25 16:43:47 +02:00
Meir Rotstein 55674f5b0f add on{Text/Node}SelectionChange configurations to editor options 2018-01-24 22:33:10 +02:00
Meir Rotstein f04eff7b4e unit test for getIndexForPosition() 2018-01-24 21:41:36 +02:00
Meir Rotstein 6bb7f734cf treemode: getNodeSelection() & onNodeSelectionChanged() 2018-01-23 20:47:08 +02:00
Meir Rotstein 47ba66a5a9 textmode: setTextSelection() 2018-01-23 00:00:18 +02:00
Meir Rotstein 3c31476377 textmode: onTextSelectionChanged() 2018-01-20 16:03:46 -05:00
jos f03b64ffec Consistently use the same font everywhere (see #502) 2018-01-18 20:16:44 +01:00
jos f4dbd1938b Fixed #502: code editor not showing a monospaced font some cases 2018-01-18 20:13:21 +01:00
Meir Rotstein d66d2d6e38 textmode: getTextSelection() 2018-01-18 14:39:34 +02:00
Linus Lewandowski 11cc2929bb
In the View mode, open links in the same tab by default
They'll still get opened in a new tab when the user presses Ctrl (like in the other modes).
2018-01-08 18:20:15 +01:00
jos 43832dd532 Fix another case of #494 2017-12-28 16:16:41 +01:00
jos a4cceef13e Update navigation bar with last entered character (instead of all but last) 2017-12-28 15:52:33 +01:00
jos 8aef543fa6 Set initial cursor location at (1, 1) instead of (0, 0) 2017-12-28 15:51:50 +01:00
Jos de Jong 2a9107db79
Merge pull request #492 from meirotstein/master
Add caret position to text mode status bar
2017-12-24 16:52:14 +01:00
Meir Rotstein 1dde8b2ac9 a bit simplification of cursot info implementation 2017-12-24 17:00:59 +02:00
Meir Rotstein 95affe7186 use escaped field text for tree node 2017-12-24 10:50:23 +02:00
Meir Rotstein 91f763b9b9 type+ 2017-12-21 13:50:33 +02:00
Meir Rotstein ed030c0518 (1) add status bar to text mode
(2)add caret position to text mode status bar
2017-12-21 13:48:25 +02:00
Israel 017cd22fd6 Dropdown items casing issue 2017-12-04 03:05:07 -05:00
Israel f2492e32dc caseSensitive option added to autocomplete 2017-12-02 13:30:44 -05:00
Israel 168a65cda4 Revert "caseSensitive option added to autocomplete"
This reverts commit 89601c3115.
2017-12-02 13:23:03 -05:00
Israel 89601c3115 caseSensitive option added to autocomplete 2017-12-02 04:44:25 -05:00
Jos de Jong 129ad5594a
Merge pull request #487 from alshakero/master
Fix autocomplete.js encoding
2017-11-22 16:04:01 +01:00
Omar Alshaker dd11f6ec8c Fix autocomplete.js encoding 2017-11-22 12:48:58 +01:00
plany c029f716da Display a dropdown for enums inside pattern properties 2017-11-20 17:32:58 +01:00
jos 9e105276d9 Don't display statusbar for text mode, some CSS tweaks. 2017-11-15 11:51:05 +01:00
jos 40e4ac9302 Fixed #481: A polyfill required `DocumentType` which is not defined in all environments 2017-11-15 10:52:45 +01:00
jos 42ede262d1 Minor tweak in the repair icon 2017-11-14 22:17:01 +01:00
jos 4875288cb7 Implemented repairing JSON objects containing special white space characters like non-breaking space 2017-11-14 21:59:23 +01:00
jos bf4e977427 Updated title of repair button 2017-11-14 21:41:54 +01:00
jos a958e229f9 Created repair button in text mode 2017-11-14 21:40:08 +01:00
jos cba5659e78 Implemented repairing JSON objects containing left and right single and double quotes 2017-11-14 21:18:49 +01:00
Jos de Jong ac4716a309 Merge branch 'develop' into path_and_count 2017-09-30 13:53:33 +02:00
Meir Rotstein 83fe0c86f4 color changes for nav and status bars 2017-09-24 00:20:32 +03:00
Meir Rotstein 05dda45265 menu2 -> navBar 2017-09-18 18:25:09 +03:00
Meir Rotstein 5d2b5e5202 nav bar style changes: new colors, replace the arrows with triangle 2017-09-17 01:31:13 +03:00
Meir Rotstein 7899724810 set nav bar height fixed and scroll to selection 2017-09-17 00:13:48 +03:00
jos 968e90edd0 Fixed #461: Urls opening twice on Firefox and Safari 2017-09-16 16:19:19 +02:00
jos de71499269 Fixed JSONEditor not working without having a schema defined 2017-09-16 16:17:31 +02:00
Meir Rotstein b4e053030b rename option: treePath -> navigationBar 2017-09-13 22:31:26 +03:00
hachichaud b0266d90ab use recursive call to Node._findSchema to handle nested cases 2017-09-13 17:34:39 +02:00
hachichaud fc1a81a6f5 loop through composite schemas in _findSchema method 2017-09-07 17:04:46 +02:00
Meir Rotstein 422284cf0d tree path - expand to selection 2017-09-03 14:26:56 +03:00
Meir Rotstein b36df94cfe document treePath in api.md 2017-09-03 13:54:55 +03:00
Meir Rotstein 7ae0c690ef add treePath option 2017-09-03 12:14:41 +03:00
Meir Rotstein 1f57894a4a Support breadcrumbs navigation in treepath 2017-09-03 11:16:22 +03:00
Meir Rotstein 1238d47bff tree path focus node when related section is clicked 2017-09-01 01:19:34 +03:00
Meir Rotstein b643eeffb4 Basic path component for tree editor (wip) 2017-09-01 00:02:14 +03:00
Meir Rotstein 6d4aa7d082 Merge branch 'master' into path_and_count
# Conflicts:
#	HISTORY.md
#	dist/jsoneditor-minimalist.js
#	dist/jsoneditor-minimalist.map
#	dist/jsoneditor-minimalist.min.js
#	dist/jsoneditor.js
#	dist/jsoneditor.map
#	dist/jsoneditor.min.js
#	package.json
2017-08-31 01:23:06 +03:00
Meir Rotstein d06c5c3eca Add line and column indication for code editor menu 2017-08-31 00:47:51 +03:00
Meir Rotstein aff04b9cd0 Add count of selected characters on text/code menu 2017-08-31 00:16:25 +03:00
jos d5ba548902 Fixed a regression introduced in #448: after using the context menu once, it was not possible to set focus to an other input field anymore 2017-08-26 13:15:19 +02:00
jos d9746e3a84 Released version 5.9.3 2017-08-20 22:06:34 +03:00
jos 916fa174be Neatly wrap long text of context menu 2017-08-20 22:06:34 +03:00
jos 1504cfc216 Fixed broken multi-selection 2017-08-20 22:06:34 +03:00
Dave Hughes 1ae040243b Fix minor typo in comment 2017-08-20 22:06:34 +03:00
Dave Hughes 66578f4add Fix minor typo in comment 2017-08-20 22:06:34 +03:00
jos a9e2f73089 Fixed a bug in the sanitizer 2017-08-20 22:06:34 +03:00
jos b92ec827f5 Released v5.9.1 2017-08-20 22:06:34 +03:00
jos 2457932400 Fixed JSONEditor picking the first entry of `modes` as initial mode instead of option `mode` 2017-08-20 22:06:34 +03:00
Thiago Bovi de Mendonca 6689759793 Add extra verification when creating JSON editor to avoid to look for an element in an empty array 2017-08-20 22:06:34 +03:00
jos ea6b71986c Cleanup some unused code. Minor update in the readme and examples 2017-08-20 22:06:34 +03:00
Israel Garcia 3654e46f08 - move 'editor' parameter to the last position
- send standard array path instead of jsonpath in getOptions
2017-08-20 22:06:34 +03:00
Israel Garcia 97891621e3 return jsonpath in getOptions and editor instance. 2017-08-20 22:06:34 +03:00
Owen Garland a9584e015f Enabled the default mode to be set when using a list of available modes. 2017-08-20 22:06:34 +03:00
Tomek Wytrebowicz 63c0689a61 Remove event listeners from (shadow) root instead of window,
make context menus work in Shadow DOM.

Fixes https://github.com/josdejong/jsoneditor/issues/447
2017-08-20 15:26:44 +02:00
Tomek Wytrebowicz b1a939d680 Add listeners to list (shadow) root instead of window,
make context menus work in Shadow DOM.

Fixes https://github.com/josdejong/jsoneditor/issues/447
2017-08-17 20:51:20 +02:00
jos c51db94f88 Released version 5.9.3 2017-07-24 11:56:21 +02:00
jos 06bbf2d1a5 Neatly wrap long text of context menu 2017-07-24 11:37:43 +02:00
jos 6ad7552c3e Merge remote-tracking branch 'origin/develop' into develop 2017-07-24 10:07:13 +02:00
jos 2110d251bb Fixed broken multi-selection 2017-07-24 10:07:00 +02:00
Dave Hughes 6b1546f803 Fix minor typo in comment 2017-07-18 12:15:46 -07:00
Dave Hughes 475dbc04b2 Fix minor typo in comment 2017-07-17 12:59:08 -07:00
jos 524d00e15e Fixed a bug in the sanitizer 2017-07-13 21:01:52 +02:00
jos 2046d98936 Released v5.9.1 2017-07-13 20:19:01 +02:00
jos 22fb4ca501 Merge remote-tracking branch 'origin/develop' into develop 2017-07-10 19:58:41 +02:00
jos 7ac3f5aee6 Fixed JSONEditor picking the first entry of `modes` as initial mode instead of option `mode` 2017-07-10 19:58:34 +02:00
Jos de Jong ccb9ea6d94 Merge pull request #423 from meirotstein/master
add support for json schema references ($ref)
2017-07-10 19:57:59 +02:00
Thiago Bovi de Mendonca e8684d7d42 Add extra verification when creating JSON editor to avoid to look for an element in an empty array 2017-07-10 10:21:33 +02:00
Meir Rotstein 0b9c1f8d34 Set schemaRefs as optional parameter of setSchema() and remove setSchemaRefs() 2017-07-10 10:32:13 +03:00
jos ee85fb099d Cleanup some unused code. Minor update in the readme and examples 2017-07-08 11:48:32 +02:00
Jos de Jong ea06b877b8 Merge pull request #426 from israelito3000/improvements/autocomplete
Improvements/autocomplete
2017-07-08 11:43:34 +02:00
Israel Garcia 495ed38063 - move 'editor' parameter to the last position
- send standard array path instead of jsonpath in getOptions
2017-07-07 13:43:15 -04:00
Israel Garcia d423a70a5d return jsonpath in getOptions and editor instance. 2017-07-06 22:26:25 -04:00
Owen Garland f6f2fce422 Enabled the default mode to be set when using a list of available modes. 2017-07-05 16:32:04 +02:00
Meir Rotstein b77deb969c add support for json schema references ($ref) 2017-07-05 00:28:28 +03:00
jos a6bd4646ca Released v5.8.0 2017-07-02 14:32:00 +02:00
Israel Garcia 088d7d6c90 - Change signature of getOptions function to (text, path, input)
- Remove node object from exposure.
- Improve startFrom option by returning the start position.
2017-06-29 01:57:54 -04:00
Israel Garcia f71aa6c5b9 Restore code for showing asyc the autocomplete. 2017-06-19 12:39:15 -04:00
Israel Garcia 4036f5cd28 Remove activationChar, update documentation. 2017-06-19 12:03:15 -04:00
Israel Garcia 00ba443acf - polyfills moved to utils.js
- lowercase "Show" function
- refine autocomplete examples.
- style improvements to match context menu.
- set auto to scrollbar in autocomplete dropdownbox
- Added docs for Templates and Autocomplete
- Promisify getOptions function
- Add elementType to getOptions function to return which element "field" or "value" is being edited.
- applyTo option now accept ['field', 'value'] instead of ['name', 'value']
- optimize confirmKeys to be part of the autocomplete option instead of autocomplete.config
2017-06-16 20:19:56 -04:00
Israel Garcia fc4562fea1 restore onblur event for hide the dropdownbox 2017-05-31 19:44:51 -04:00
Israel Garcia df4cb21146 stylize as CSS classes, remove config inline styles. 2017-05-31 19:41:50 -04:00
Israel Garcia 0391ad11b4 adjust public methods to camelCase and refine examples. 2017-05-31 17:53:24 -04:00
Israel Garcia 5411ad19ac autocomplete integrated. 2017-05-26 03:58:16 -04:00
Israel Garcia ae287d48e9 Autocomplete integrated and 3 samples. 2017-05-26 03:32:01 -04:00
Israel Garcia 1b998c5b1a Renaming properties templates 2017-05-23 20:06:07 -04:00
Israel Garcia 1393b148db Autocomplete final refactory 2017-05-16 02:20:30 -04:00
Israel Garcia 131e8f106d custom autocomplete working 2017-05-15 00:31:20 -04:00
jos 0ddc9407b0 Updated history and example. Fixed bottom margin of submenu 2017-05-07 15:32:31 +02:00
Israel Garcia 3a9e55b3ae Support for Template Items 2017-05-05 04:36:13 -04:00
jos 09c1375c84 Fixed not being able to move focus to a enum select box when clicking a JSON Schema warning 2017-04-15 12:21:41 +02:00
Jos de Jong eadf5c6403 Merge pull request #383 from walkerrandolphsmith/develop
#382 Read only text mode.
2017-04-12 21:08:57 +02:00
Walker Randolph Smith 3539f40dc5 #382 Support read only code mode. 2017-04-12 11:51:50 -04:00
Walker Randolph Smith c29bcba5ff #382 typo on typeof function check 2017-04-12 11:51:50 -04:00
Walker Randolph Smith 2c72173366 #382 Read only text mode. 2017-04-12 11:51:50 -04:00
Jos de Jong cfc5a805e7 Merge pull request #381 from chinesedfan/fix_bkgcolor
Optimize the input experience of Chinese IME
2017-04-04 22:00:14 +02:00
Xianming Zhong a768784643 Optimize the input experience of Chinese IME 2017-03-30 16:38:53 +08:00
jos e1f686b8e5 Fixed #368: Mode selection drop down not fully visible on small screen 2017-02-26 20:40:12 +01:00
jos 717ed48474 Fixed #309: already loaded version of Ace being overwritten by the embedded version of JSONEditor 2017-01-06 21:46:23 +01:00
jos 3117789ed7 Released v5.5.11 2017-01-06 20:58:19 +01:00
jos 2f4f221c9a Better fix for #347 (earlier fix introduced other CSS issues) 2017-01-06 20:56:03 +01:00
jos 1c8ea64c2a Fixed #54: CSS more robust against global settings of div position 2017-01-03 20:43:10 +01:00
jos 94ca26e457 Fixed a styling issue with Ace search box 2017-01-03 20:36:08 +01:00
jos 8dc4752872 Fixed embedded version of jsoneditor ace theme not being loaded in minimalist version. Added docs and example on loading a custom Ace editor (see #55) 2017-01-03 20:23:03 +01:00
jos df12832a6b Fixed #85: pressing enter in an input in a form containing a JSONEditor too breaks submitting the form 2016-11-01 21:00:21 +01:00
jos 8913ce1f6f Fixed #329: Editor showing duplicate key warnings for keys defined on the Object prototype, like `toString` and `watch` 2016-10-15 10:49:44 +02:00
Stephen Thompson 48408f4ded Fix https://github.com/josdejong/jsoneditor/issues/314
The JSON path parsing code assumes that string keys within square brackets in JSON paths will be valid, parseable JSON.

However, the ajv library on which this project depends emits string keys in single quotes.

For example, ajv can emit .foo['bar'], which will ultimately end up with a call to JSON.parse("'bar'"). This causes the "Unexpected token ' in JSON at position 0" error thrown from JSON.parse.

 Since ajv shouldn't need to change and since this utility is gone in the next branch, this fix checks for ajv-formatted string keys and patches them to double-quoted strings before calling JSON.parse. This is the narrowest fix for the problem.
2016-09-22 18:06:22 -04:00
jos e4073905a5 Fixed #308: wrong positioning of label "empty array" when `onEditable` returns false 2016-07-05 20:09:34 +02:00
jos c2c7dd5adf Fixed #303: editor contents collapsed when the parent div of the JSONEditor has no height set 2016-06-06 21:25:45 +02:00
jos c8de51d03f Fixed #298: Switch mode button disappears when switching from text/code to tree/form/view mode when the JSON contained errors 2016-05-23 21:27:34 +02:00
jos 67823c6642 Some code reorganization 2016-05-23 21:09:04 +02:00
jos f7c9b7d9ff Some code reorganization 2016-05-23 20:52:00 +02:00
jos b67d683f1a Fixed enum drop downs not working when the JSONEditor is configured with a name (see #285) 2016-05-23 20:35:24 +02:00
jos b11dc3038f Fixed nodes being multi-selected when selecting an enum drop down 2016-05-22 20:40:17 +02:00
jos 40c1b887e7 Fixed a (harmless) error in the console when clicking right from an enum drop down 2016-05-22 20:19:19 +02:00
jos b922aceb07 Fixed #285: an issue with the enum drop down when having defined multiple enums in a JSON schema 2016-05-22 20:14:50 +02:00
jos 8c3c476fe7 Fixed #299: reverted the fix of #268 by trimming text in fields and values 2016-05-22 14:59:37 +02:00
jos e8092db9b4 Fixed #294: Fields reset their caret location on every key press in Firefox 2016-04-18 20:41:07 +02:00
jos 444d2b3631 Fixed enum select boxes not being rendered/removed when setting or removing a JSON schema via `editor.setSchema(schema)` 2016-04-16 12:36:14 +02:00
Jos de Jong 81829c9dac Merge pull request #292 from nucleartide/master
Fix context menu CSS when used with Bootstrap.
2016-04-11 21:40:21 +02:00
Jos de Jong 953acd2055 Merge pull request #285 from tdakanalis/feature/enumAsDropDownMenus
Display Enums As Drop Downs
2016-04-11 20:15:01 +02:00
Jason Tu 3be456c783 Fix context menu CSS when used with Bootstrap. 2016-04-11 12:02:39 -04:00
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 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
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 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 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 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 0432bd95f2 Fixed #272: Checkbox for boolean values visible in view mode 2016-02-15 20:35:19 +01:00
jos 2a4fa900e6 Fixed #264: Clicking items in the context menu not working on Firefox 2016-02-01 20:39:50 +01:00
Andrea Pinazzi 3201824d39 require Ajv module instead of Ajv compiled file 2016-01-21 16:05:49 +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 ae2f4e923f Fixed #257: Improving error messages for enum errors failed when the schema contains references. 2016-01-16 10:46:43 +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
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 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
jos 30fb043396 Allow passing `ajv` as configuration option 2016-01-12 09:21:41 +01:00
jos 54d2957f88 Implemented debouncing validation. Changed color of warning icon to yellow. 2016-01-12 08:56:28 +01:00
jos 4b5ac7434f Parent nodes now display an error when a child node is invalid 2016-01-11 17:06:12 +01:00
jos e21aad3e69 Basic JSON schema validation working 2016-01-11 15:44:03 +01:00
jos 593c6bd528 Fixed a bug in positioning of the context menu for multiple selected nodes 2015-12-31 15:04:32 +01:00
jos 7eb0803185 Fixed #130: option `onEditable` not available in mode `form` 2015-12-31 14:22:27 +01:00
jos 6b1c75b2c2 Fixed #104: context menus are now positioned relative to the elements of the editor instead of an absolute position in the window 2015-12-31 13:31:03 +01:00
jos 5955111b4d Fixed focus on mouse over 2015-12-31 10:05:57 +01:00
jos 0b3fc6956f Disable dragging multiple items when in mode view or form 2015-12-31 09:44:59 +01:00
jos 1fe49e0c39 Fixed not being able to select a single node 2015-12-30 22:20:15 +01:00
jos e372441542 Fixed jumping of selected nodes when dragging the lower down nodes 2015-12-30 21:39:49 +01:00
jos e90248c0d0 Some fixes in keyboard shortcuts to move a multi selection 2015-12-30 20:51:03 +01:00
jos 96c4204b1c Implemented keyboard shortcuts to select multiple fields 2015-12-30 20:29:45 +01:00
jos fe5a413f23 Minor css fix. Some internal refactoring. Updated history. 2015-12-30 17:38:05 +01:00
jos 5f99f09c0f Fixed dragging multiple nodes horizontally 2015-12-30 17:26:39 +01:00
jos d934992cdf Removed some leftover code 2015-12-30 16:11:22 +01:00
jos 8975101925 Fixed quick-keys Shift+Alt+Arrows not registering actions in history 2015-12-30 16:10:29 +01:00
jos d01fe7caab Dragging multiple nodes mainly working (few bugs left) 2015-12-30 15:01:14 +01:00
jos f88e3d6f0c Minor fix in _findTopLevelNodes 2015-12-30 11:23:22 +01:00
jos ceeb5e3357 Store/restore multiselection 2015-12-30 11:09:27 +01:00
jos a839043fd5 Implemented removing/duplicating multiple nodes 2015-12-30 10:28:18 +01:00
jos 353815bc61 Changed history to supporting inserting/removing/moving multiple nodes 2015-12-30 09:32:17 +01:00
jos ee027b2758 Multiple nodes can be selected visually, and have a specific contextmenu 2015-12-29 21:58:57 +01:00
jos 7ec8ea879f css fix 2015-12-28 12:51:33 +01:00
jos 862aa388c7 Fixed #242: row stays highlighted when dragging outside editor 2015-12-28 12:41:12 +01:00
jos b9c8c6a769 Fixed broken highlighting while dragging 2015-12-27 22:18:34 +01:00
jos ffcae51cd3 Fixed another css issue 2015-12-27 21:46:53 +01:00
jos 301e33983c Renamed all CSS classes They now have prefixes `.jsoneditor-` to prevent name collisions with css frameworks like bootstrap. 2015-12-27 21:43:18 +01:00
jos db0345c668 Styling of values in tree mode now customizable. Added a custom styling example 2015-12-27 17:36:59 +01:00
jos 2afe73a43a New design tweaks 2015-12-27 16:15:26 +01:00
jos 5ccfb909e6 New design 2015-12-25 16:48:15 +01:00
jos 2b671f1f5a Minor css tweak 2015-12-25 15:13:33 +01:00
jos a4c5190135 Renamed `.editor` to `.aceEditor` 2015-12-25 15:07:00 +01:00
jos 363974fe4c Minor improvement of expand in modes view/form 2015-12-25 14:47:39 +01:00
jos 95c1c4b0dd Fixed #203: Objects and arrays in mode `form` and `view` are now expandable by clicking the field names too. 2015-12-25 14:38:14 +01:00
jos fb4ec75d56 Changed setValue to clear 2015-12-25 14:01:01 +01:00
jos de314b897e Renamed options `change`, `editable`, `error` to respectively `onChange`, `onEditable`, and `onError`. Implemented `onModeChange` and `getMode`. 2015-12-25 11:38:41 +01:00
jos 75994c8035 Fixed #38: clear search results after a new JSON object is set 2015-12-25 10:45:28 +01:00
jos cafd4daba3 Implemented a new option `escapeUnicode`, which will show the hexadecimal unicode instead of the character itself. (See #93 and #230). 2015-12-24 20:20:50 +01:00