Better CSS for the JSON editor
This commit is contained in:
parent
25bbc0c748
commit
4e834766ac
8 changed files with 271 additions and 9 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue