HISTORY.md
https://github.com/josdejong/jsoneditor
jsonrepair..validate() always returns a Promise.option.text is
available (#1676). Thanks @ahmed-saber.withPath for the expand method,
see #1671.jsonrepair and ace-builds.darktheme.css
example file (#1672). Thanks @epeleh.text and value
(#1669). Thanks @ahmed-saber.jsonrepair and ace-builds).true property value in a JSON Schema (#1644).
Thanks @joshkel.mobius1-selectr from the list with dependencies to get
rid of a security vulnerability in its docs. (copy) suffix, the suffix was removed.onValidationError did not always trigger.ace.sass.ace and jsonrepairace-builds, jsonrepair, and vanilla-picker.label instead of div.
Thanks @ppetkow.ace and jsonrepair.ace and jsonrepair.ace and jsonrepair.jsonrepair to v3.1.0 to stay compatible with
Internet Explorer 11. Regression introduced in v9.10.3. See #1563.view, font-size increasing
on mobile Webview.ace and jsonrepair.ace, jsonrepair, and vanilla-picker.showErrorTable (see #1515):
showErrorTableshowErrorTable: false was not workingshowErrorTable was not working for preview modeace and jsonrepair.showErrorTable.showErrorTable to customize in which modes the error table
shows up initially (#1497). Thanks @magedhennawy.v1.15.2.v3.0.2.2.4.0 to 2.4.13.v1.10.1.v1.6.0.editor.expand({ path, isExpand, recursive }) and callback
onExpand({ path, isExpand, recursive }). Thanks @himanshu520.v1.5.3.onBlur event not firing when focus goes to an iframe.setSchema not working.view.value along with the onNodeName callback, see #1409.
Thanks @brianpos.value property of the callbacks onNodeName, onEditable,
and onClassName for objects and arrays too (was undefined before).
Since this can be a heavy recursive operation, the property is changed into
a lazy getter.Element.remove, window.CharacterData.remove,
and window.DocumentType.remove. Thanks @caok2709.[email protected], [email protected].setMode not throwing an exception anymore in case of a parse error
(regression since 9.5.4).noreferrer for window.open, see #1365. Thanks @rajitbanerjee.onError callback (see #1364).[email protected].JSONEditor.validate(): Promise<ValidationError[]>.
Thanks @ChrisAcrobat.code mode to preview mode.selectr to prevent conflicts with tailwind,
see #1333. Thanks @mdix.oneOf, anyOf, allOf. Thanks @maufl.refresh() during onChange
callback.$jse-icons-url, see #1268. Thanks @ppetkow.[email protected].Ctrl+\ and
Ctrl+Shift+\ to Ctrl+I and Ctrl+Shift+I respectively, because not all
browsers and operating systems support this key combination.[email protected]).jsoneditor-minimalist bundle being too large. Regression since v9.1.5
(caused by a recent upgrade to Webpack 5). Thanks @cbmgit.simple-json-repair with jsonrepair (library was renamed).additionalProperties. Thanks @maufl.ajv.[email protected].onEvent for boolean checkbox and enum selectbox too.onEditable is
invalid. See #1112.[email protected].simple-json-repair with many improvements.Ctrl+D (duplicate) not working.de). Thanks @s-a.Ctrl-\ (format) and Ctrl-Shift-\ (compact) not working
in code mode.[email protected].name.[email protected].[email protected], [email protected].main field in package.json to point to the actual
bundled and minified file instead of a node.js index file.v9.0.2 in the select boxes in the
Transform model not lighlighting the matches correctly.find and findIndex in such a way
that they are not iterable.limitDragging, see #962. This is a breaking change when
using a JSON schema: dragging is more restrictive by default in that case.
Set limitDragging: false to keep the old, non-restricted behavior.dist/jsoneditor.js bundle containing a link to a
non-existing source map.[email protected].v8.6.5.[email protected], [email protected].sortObjectKeys emits onChange events.language not working in modes text, code, and preview.v8.6.2). See #917.JSONEditor.update broken, did not always recognize when the
input changed. Regression introduced in v8.6.2.[email protected]'preview'
to 'code' mode.True, False
and None into valid JSON using repair.code being broken when custom
loading an old version of Ace Editor.code not always updating.createQuery, executeQuery, and
queryDescription are available for this now. An example is available
in examples/23_custom_query_language.html. See #857, #871.code mode.code and text after
transforming or sorting.console.log in production code. Oopsie.jsoneditor-expanded and jsoneditor-collapsed on array
and object nodes reflecting there state.ajv to v6.11.0.ace to v1.4.8.vanilla-picker to v2.10.1.preview mode show KB and MB instead
of KiB and MiB in order to match the size reported by filesystems.popupAnchor allowing to select a custom anchor element.
See #869 and #870.* { font-family: ... } resulting in Ace editor (code
mode) not having a mono-space font anymore.timestampFormat which allows customizing the formatting
of timestamp tags. See also option timestampTag. Thanks @smallp.timestampTag to fallback on the built-in rules when
the function does not return a boolean. See #856.v7.3.0 to check whether some field
contains a timestamp based on the field name, because they can give wrong
timestamps in case of values in seconds instead of the assumed milliseconds
(see #847, #856).onValidationError to also report parse errors,
and distinguish between JSON schema validation errors and custom errors.
See #861 and #612. Thanks @meirotstein.onValidationError, see #612, #854.
Thanks @meirotstein.null, 123, true, false.onFocus and onBlur not working in modes text and code
when editor was created without main menu bar, and editor.destroy()
throwing an exception.onFocus and onBlur (PR #809, issue #727).
Thanks @123survesh.timestampTag.0.view or form.ja). Thanks @yutakiyama.fr-FR), and some improvements in the
translation. Thanks @yannickyvin.code and text.ace-builds directly instead of brace (still using Ace 1.2.9).[email protected].index.js pointing to non-transpiled code. See #783.dist folder.dist folder from the git repository.v6.4.0.code
when the path contained a property with a forward slash, and errors not
clickable in the error table.sortObjectKeys broken.code, text, and
preview when statusBar: false.(copy) suffix. See #766.name not working anymore. Regression since v6.1.0.autocomplete.trigger: 'focus' throws an error when opening the
context menu. Thanks @Thaina.[email protected]preview, capable of working with large JSON documents
up to 500 MiB.code mode, there was an initial undo action which clears
the content.[email protected], [email protected],
[email protected].sort and transform for modes code and text.extract.[email protected], supporting JSON schema
draft-07 alongside draft-06 and draft-04.[email protected].filter and trigger.
Thanks @Gcaufy.[email protected].onCreateMenu, node.path is null when clicking
on an append node or when multiple nodes are selected.[email protected], [email protected].const used in bundled library.] not parsed
correctly.onCreateMenu to customize the action menu.
Thanks @RobAley.onClassName throwing an error when a node is removed.const declaration in published code.
Regression introduced in v5.28.0.maxVisibleChilds to customize the maximum number
childs that is rendered by default. Thanks @20goto10.onClassName, allowing customized and dynamic
styling of nodes. See 20_custom_css_style_for_nodes.html for a demo.
Thanks @maestr0.refresh() public.$ref, and not creating enum dropdowns.
Thanks @tylerchen.onNodeName. Thanks @bnanchen.gulp to v4. Thanks @maestr0.v5.26.1)..update() throwing an exception when replacing a JSON object
with null. Thanks @DullReferenceException.mainMenuBar to enable/disable the main menu bar.
Thanks @tanmayrajani.enableSort and enableTransform so you can turn off
these features. Thanks @tanmayrajani.import JSONEditor from 'jsoneditor' not working in
TypeScript projects (gave a constructor is undefined error).Promise is undefined.view when an array
with more than 100 items is rendered.Promise is undefined. Regression since v5.23.0.onClose of color picker not being fired when clicking outside
the picker to close it.brace, mobius1-selectr, vanilla-picker.mocha.onChange
event, and onChange events are now debounced like all text inputs.text mode.
Thanks @meirotstein.
transform not creating/removing expand button when the type
of a node changed.colorPicker and onColorPicker.timestampTag.v5.20.0.onValidate callback.jsoneditor-validation-error which can be used for custom styling.onEvent callback triggered when an event occurs in a JSON
field or value. Thanks @cristinabarrantes.$ character in property names of of a JSON schema.Good news: JSONEditor is finally framework friendly and can now be easily integrated in React, Vue, and Angular!
update and updateText, which maintain the state
of the editor (expanded nodes, search, selection). This makes it easy to
integrate in frameworks like React.onChangeJSON(json) and onChangeText(jsonString).examples folder.view
and form.modalAnchor to control at which part of the
screen the modals are displayed.onSelectionChanged, onTextSelectionChanged,
getSelection, getTextSelection, setSelection, setTextSelection,
and getNodesByRange. Thanks @meirotstein.jsoneditor-icons.svg, which could.
give issues with webpack plugin "file-loader". Thanks @landru29.null values, see #512.
Thanks @43081j.caseSensitive option for autocomplete.
Thanks @israelito3000.text mode (which doesn't yet support
row and col counts).text and code mode.ajv to version 5.3.0.DocumentType which is not defined
in all environments.v5.9.4: after using the context
menu once, it was not possible to set focus to an other input field
anymore.setText method of tree mode now automatically sanitizes JSON input
when needed.$ref, see #302.
Thanks @meirotstein.modes. Thanks @trystan2k.modes as initial mode
instead of option mode.modes instead of tree when mode is not
configured. Thanks @bag-man.dist (again...).dist
(reverted to [email protected] for now).ajv to version 5.2.0. Resolves warnings in
Webpack build processes.text and code.
Thanks @walkerrandolphsmith.brance and ajv) to the latest versions.code).toString and watch.onEditable
returns false.editor.setSchema(schema).ajv, brace, etc).setText() not working in mode text or code.get() or getText() caused the editor to lose focus.
A regression introduced in v5.2.0.editor.destroy() to properly cleanup the editor (#278).search.search is false (see #256). Thanks @MiroHibler.ajv.dist folder, excluding ace and ajv.onChange events when switching mode.Shift+Arrow Up/Down to Ctrl+Shift+Arrow Up/Down.onEditable not available in mode form.version field from bower.json.escapeUnicode, which will show the hexadecimal
unicode instead of the character itself. (See #93 and #230).getMode.onModeChange(oldMode, newMode).form and view are now
expandable by clicking the field names too..jsoneditor- to prevent
name collisions with css frameworks like bootstrap.change, editable, error to respectively onChange,
onEditable, and onError. Old options are still working and give a
deprecation warning.& not escaped.code mode, web worker
of Ace editor wasn't cleaned up.jsonlint project on github.Ctrl+L quick key to go to a line, instead use the default
browser behavior of selecting the address bar.theme, allowing to set a custom theme for the Ace
editor. Thanks @nfvs.ace, which allows to pass a custom instance of the Ace
instead of the embedded version.jsonlint.parse.editor.get() manipulating the code when containing an error.index.js to the bower package.focus() for modes tree, view, and form../src folder to the distributed package, needed for usage via
node.js/browserify./dist folder.brace to load Ace.Ctrl+\ to format and Ctrl+Shift+\ to compact
JSON when in mode text or code."". Thanks @tomalec.parseJS (to parse a JSON object from a JavaScript
object).eval to a dedicated
parseJS function.{a:2,b:'str'} can be turned into {"a":2,"b":"str"}.editable, a callback function, which allows to set
individual nodes (their field and/or value) editable or read-only.form or view.new JSONEditor(...) instead of
new jsoneditor.JSONEditor(...).modes, which creates a menu in the editor
where the user can switch between the selected editor modes.null.indentation.