From b853ec3f6416311312188a041358a2e96a1e6180 Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 22 Aug 2018 12:10:15 +0200 Subject: [PATCH] Implement color picker. Expose `VanillaPicker`, `ace`, and `Ajv`. --- HISTORY.md | 6 +++ README.md | 21 +++----- docs/api.md | 52 ++++++++++++++++++- examples/01_basic_usage.html | 2 +- gulpfile.js | 3 +- package-lock.json | 19 +++++++ package.json | 3 +- src/css/jsoneditor.css | 10 +++- src/docs/which files do I need.md | 7 ++- src/js/JSONEditor.js | 8 +++ src/js/Node.js | 86 ++++++++++++++++++++++++++----- src/js/appendNodeFactory.js | 2 +- src/js/treemode.js | 28 +++++++++- src/js/vanilla-picker/index.js | 17 ++++++ test/test_build.html | 2 +- test/test_build_min.html | 2 +- test/test_minimalist_min.html | 2 +- 17 files changed, 229 insertions(+), 41 deletions(-) create mode 100644 src/js/vanilla-picker/index.js diff --git a/HISTORY.md b/HISTORY.md index 95b1945..e653c29 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,12 @@ https://github.com/josdejong/jsoneditor +## not yet released, version 5.24.0 + +- Implemented a color picker, and allow hooking in a custom color + picker. new options are `colorPicker` and `onColorPicker`. + + ## 2018-08-17, version 5.23.1 - Fixed #566: transform function broken, regression since `v5.20.0`. diff --git a/README.md b/README.md index 0f09b2e..370db47 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,11 @@ Cross browser testing for JSONEditor is generously provided by