Fixed menu buttons "Sort" and "Transform" being available in modes `view` and `form`

This commit is contained in:
jos 2018-08-07 13:52:23 +02:00
parent 73bec80df5
commit b0acd3f1cd
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,8 @@ integrated in React, Vue, and Angular!_
integrate in frameworks like React. integrate in frameworks like React.
- Implemented options `onChangeJSON(json)` and `onChangeText(jsonString)`. - Implemented options `onChangeJSON(json)` and `onChangeText(jsonString)`.
- Added two React examples to the `examples` folder. - Added two React examples to the `examples` folder.
- Fixed menu buttons "Sort" and "Transform" being available in modes `view`
and `form`.
## 2018-08-02, version 5.19.2 ## 2018-08-02, version 5.19.2

View File

@ -59,6 +59,12 @@ div.jsoneditor-menu > button.jsoneditor-sort {
div.jsoneditor-menu > button.jsoneditor-transform { div.jsoneditor-menu > button.jsoneditor-transform {
background-position: -144px -96px; background-position: -144px -96px;
} }
div.jsoneditor.jsoneditor-mode-view > div.jsoneditor-menu > button.jsoneditor-sort,
div.jsoneditor.jsoneditor-mode-form > div.jsoneditor-menu > button.jsoneditor-sort,
div.jsoneditor.jsoneditor-mode-view > div.jsoneditor-menu > button.jsoneditor-transform,
div.jsoneditor.jsoneditor-mode-form > div.jsoneditor-menu > button.jsoneditor-transform {
display: none;
}
div.jsoneditor-menu > button.jsoneditor-undo { div.jsoneditor-menu > button.jsoneditor-undo {
background-position: -24px -96px; background-position: -24px -96px;
} }