jdorn / json-editor

JSON Schema Based Editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Icon is not visible for json editor

opened this issue · comments

I've a application deployed in JBOSS via EAR. I've put the SVG files in "WebContent\scripts\img" directory. Json editor script files in "WebContent\scripts". My jsp in "WebContent".

Icon not showing up.

Project is in Eclipse

CSS is in scripts directory. The code is not showing while I put the comment.

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>




<title>Insert title here</title>

<script src="scripts/jsoneditor.js"></script>
<style type="text/css">
body {
	font: 11pt arial;
}

#jsoneditor {
	width: 1350px;
	height: 600px;
}
</style>


<script> function init() { var container = document.getElementById('jsoneditor'); var options = { mode: 'view' }; var json = {"a":34}; var editor = new JSONEditor(container, options, json); editor.setText('{"a":234}'); } </script>

Also I want to know how to load and save json file in json editor. I'm not able to understand the code provided in your website.

This repo is no longer maintained (see also #800)

Development is continued at https://github.com/json-editor/json-editor

For details please visit json-editor/json-editor#5