List of 2.x changes
See original GitHub issue2.x changes
- Build method now uses Webpack instead of Grunt. So be sure to read
release-notes.md
- Editors refactored to remove redundant code and make output/functionality more uniform.
- New standardized options format for plugin based editors. Options can be set globally or in schema. (See
README_ADDON.md
) - Editors can now use JavaScript callback functions in options.
- Select2 & Selectize is no longer applied globally to all elements, but can be enabled for a single field. (You can now use both Select2 and Selectize fields on the same form)
- All editors now respects the “compact” option and displays headers, description & infoText correctly (Output is Theme controlled, so might not work/look correctly with old 1.x Themes).
- All plugin based editors now creates JavaScript instances using
window.requestAnimationFrame
, to insure that field element have finished rendering completely. This speeds up the form rendering significantly as there is no wait for the plugin rendering to finish. - Plugin based editors now fallback to standard editors if JavaScript library is not loaded/present.
- Testing can now be done locally using CodeceptJS/Puppeteer.
- Test cases have been updated.
- The schema “template” property can now be set to a JavaScript callback function. (Callback function is defined under
window.JSONEditor.defaults.callbacks.template
) - The dynamic “enumSource” properties
filter
,title
andvalue
can now be set to a JavaScript callback function. (Callback function is defined underwindow.JSONEditor.defaults.callbacks.template
) - New sorting property
sort
added to dynamic “enumSource” properties. Accept values “asc” and “desc” - Support for IMask library added to string based editors.
- IE9 Polyfill and jQuery wrapper have been removed.
New Theme format (Old themes can still be used, but might not display correctly in some cases.):
- Themes can now define Style Rules and use those instead of Inline Styles. (Style Rules can also be created from editor code.)
- Themes have own options for changing various aspects of the display.
- Functions added for creating radio, checkbox, button, range and other previously hadcoded elements.
- Old 1.x themes now displays the message “This is an old JSON-Editor 1.x Theme and might not display elements correctly when used with the 2.x version” at the bottom of the form output.
Themes in 2.x format:
- Spectre (New Theme, created by @pmk65)
- Tailwind (Updated Theme, created by @mirannda)
- Bootstrap4 (Updated Theme, created by @stroebjo)
- HTML & Barebone themes Note: We still need someone to update/cleanup the Materialize and Foundation themes.
Refactored editors:
- String - Ace, SCEditor & SimpleMDE code moved to separate files that extends string editor.
- Select - Select2 & Selectize code moved to separate files that extends select editor.
- Radio - Output now created from Theme functions instead of hardcoded. Now extends select editor instead of string editor. Supports vertical and horizontal layout.
- Multiselect - Select2 & Selectize code moved to separate files that extends multiselect editor.
- Choices - Now extends select editor. (Rewritten code with extra functionality. Note: functionality might differ from old version.)
- Upload - Now supports Drag&Drop upload and can be restricted to only allow upload of specific file types.
New Editors:
- Select2 - Extracted from select/multiselect editors. (Rewritten code with extra functionality)
- Selectize - Extracted from select/multiselect editors. (Rewritten code with extra functionality)
- Ace - Extracted from string editor.
- SCEditor - Extracted from string editor.
- SimpleMDE - Extracted from string editor.
- Jodit - WYSIWYG Editor, using Jodit v.3
- Autocomplete - Autocomplete/Autosuggest using Autocomplete
- IP - IPv4/IPv6 and hostname fields with validation.
- ColorPicker - A simple, easy to use vanilla JS color picker with alpha selection.
New special editors: (Does not leave any footprint in form results)
- Button - Add buttons with JavaScript callbacks, to form.
- Info - Insert textual blocks in form. If DOMPurify is loaded, you can also use HTML tags.
Also various minor bugs and issues have been fixed during refactoring/cleanup.
ToDo:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:13 (4 by maintainers)
Top Results From Across the Web
List of lists changes reflected across sublists unexpectedly
When you write [x]*3 you get, essentially, the list [x, x, x] . That is, a list with 3 references to the same...
Read more >Log4j – Changes - Apache Logging Services
Version, Date, Description. 2.19.0, 2022-09-09, GA Release 2.19.0. 2.18.0, 2022-06-28, GA Release 2.18.0. 2.17.2, 2022-02-23 ...
Read more >Finding the rate of change from a table - YouTube
i.e. rate of change = change in y / change in x. ... ✓How to Find The Slope Between Two Points https://www.youtube.com/playlist? list....
Read more >Rate of Change - Varsity Tutors
A rate of change is a rate that describes how one quantity changes in relation to another quantity. If x is the independent...
Read more >What's different between the AWS SDK for Java 1.x and 2.x
This section describes the main changes to be aware of when converting an application from using the AWS SDK for Java version 1.x...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sirockin Issue #486 can be merged ASAP. I’d recommend to continue with
develop/2.x
, we had no big changes onmaster
.Now submitted as https://github.com/json-editor/json-editor/pull/486