Commit Graph

506 Commits

Author SHA1 Message Date
jos 7f9fdac9d1 Styling fixes 2018-07-11 11:24:38 +02:00
jos e0d4ab27a3 Add spacing at the bottom to display the dropdown on the bottom item 2018-07-11 11:08:18 +02:00
jos 7662874036 Integrated `mobius1-selectr` 2018-07-11 10:54:08 +02:00
jos 228a9e9f12 Change query input into a textarea 2018-07-07 14:58:16 +02:00
jos 0e674a6b02 Debounce updating preview 2018-07-07 14:41:11 +02:00
jos fdbfa8a951 Enclose string values in double quotes 2018-07-02 22:09:40 +02:00
jos 066f5d37e6 Fixes in extracting all child paths 2018-07-02 21:40:47 +02:00
Cristina ecd9bf021f Add API functionality to extend event behaviour. 2018-07-02 13:13:02 +02:00
jos b53317e431 Styling tweaks 2018-06-27 12:27:57 +02:00
jos 12ba61f935 Implemented JMESPath wizard 2018-06-27 11:47:59 +02:00
jos fbf20b5031 Fixed #544: JSON Schema errors sometimes not being displayed in the editor 2018-06-24 15:41:25 +02:00
jos cab3211e05 Make code robust against missing `navigator` 2018-06-24 14:37:56 +02:00
jos 463276a3d9 Implemented `modalAnchor` 2018-06-20 20:27:36 +02:00
jos 86d2c60fb4 Some fixes in undo/redo a transform action (WIP) 2018-06-20 15:18:48 +02:00
jos 866c520a71 Remove unused method `_move` 2018-06-20 14:02:14 +02:00
jos df477ed199 Implemented JMESPath preview 2018-06-20 14:01:36 +02:00
jos bcca373931 Change `i18n.js` to 2 space indentation 2018-06-20 13:04:22 +02:00
jos a5a43bbc7b Integrated JMESPath 2018-06-20 12:25:58 +02:00
jos d85a151243 Moved `showSortModal` into a separate file 2018-06-20 09:32:18 +02:00
jos 05c259dfb4 Released `v5.17.1` 2018-06-03 15:26:16 +02:00
jos a2e0b22349 Make "Select a node..." text translatable 2018-06-03 15:17:28 +02:00
jos 0f0ec480f4 Fixed styling issues with select on IE11 and Edge 2018-06-03 14:58:31 +02:00
jos 3b23ef88a2 Fixed sort modal not working when JSONEditor is created inside a form 2018-06-03 13:45:52 +02:00
jos 185a81e03a Translate the text in the sort modal 2018-06-02 20:21:27 +02:00
jos b28f73ee13 Implemented modal header 2018-06-02 16:37:40 +02:00
jos 41aa876b08 Implemented button group for asc/desc 2018-06-02 16:19:21 +02:00
jos 95d5d33f56 Remember sorting 2018-06-02 15:02:24 +02:00
jos bd87ac83d5 Neat styling of modal popup contents 2018-06-02 14:53:57 +02:00
jos 2e207196df Make sure the paths in the sort modal are sorted 2018-05-30 22:33:58 +02:00
jos 1106404822 Sorting robust against missing nested childs, and collect nested properties from all childs instead of just the first. 2018-05-30 22:32:37 +02:00
jos 8b77111393 Implemented advanced sorting modal (WIP) 2018-05-30 21:54:25 +02:00
jos 9eb9c4fe0b Implemented `getSortablePaths` 2018-05-30 09:48:51 +02:00
jos f00c837388 Released v5.16.0 2018-05-23 09:50:53 +02:00
jos d9babab497 Limit search results to max 1000 matches 2018-05-21 20:35:49 +02:00
jos 916c657e28 Set back correct `MAX_VISIBLE_CHILDS` 2018-05-16 21:17:56 +02:00
jos 02ae08173b Renamed `maxVisibleChilds` to `visibleChilds` 2018-05-16 21:11:52 +02:00
jos 8eaa488318 Fixed updating `maxVisibleChilds` in `appendChild` 2018-05-16 21:05:56 +02:00
jos 0fd1cbabb4 Highlight showMore when selected 2018-05-16 17:26:56 +02:00
jos abe274869c Some more fixes 2018-05-16 17:12:48 +02:00
jos 2c806bd105 Change default max visible childs to 100 2018-05-12 20:14:12 +02:00
jos c0a5774005 Render errors only for visible nodes 2018-05-12 17:51:24 +02:00
jos 53a49107d0 Handle expanding maxVisibleChilds if needed with undo/redo 2018-05-12 17:23:21 +02:00
jos 8dff972dce Implemented translate (`pt-BR` still has to be checked for correctness) 2018-05-12 16:53:18 +02:00
jos 3d8ca6df33 Cleanup commented code 2018-05-12 16:36:41 +02:00
jos 402afe92e2 Fixed changing type of object to array and vice versa 2018-05-12 16:27:33 +02:00
jos 6a15c04053 Fixed quickkeys alt+arrows moving over "show more" tag 2018-05-12 16:14:19 +02:00
jos 92a431e37d Fixed being able to drag an item after the "show more" area 2018-05-07 20:55:39 +02:00
jos 10a2447caa Fixed dragging not working with "show more" 2018-05-06 21:20:53 +02:00
jos 497c20019d No more expanding of all search results. Search working with large arrays 2018-05-06 21:03:53 +02:00
jos 904110d141 Implementing "show more" for large arrays (WIP) 2018-05-06 19:42:19 +02:00
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