Better CSS for the JSON editor

This commit is contained in:
Magnus Åhall 2025-07-07 08:52:37 +02:00
parent 25bbc0c748
commit 4e834766ac
8 changed files with 271 additions and 9 deletions

View file

@ -6,8 +6,9 @@ export class Editor {
render(data) {
const options = {
theme: 'spectre',
iconlib: 'spectre',
//theme: 'spectre',
//iconlib: 'spectre',
theme: 'barebones',
disable_collapse: true,
disable_properties: true,
schema: this.schema,
@ -22,7 +23,6 @@ export class Editor {
const div = document.createElement('div')
this.editor = new JSONEditor(div, options);
// this.editor.on('ready', ()=>{
// })
div.addEventListener('keydown', event=>this.keyHandler(event))