Have the preview test file actually load `preview` mode
This commit is contained in:
parent
4937337147
commit
c059fdb543
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>JSONEditor | Load and save</title>
|
||||
<title>JSONEditor | Preview mode load and save</title>
|
||||
|
||||
<link href="../dist/jsoneditor.css" rel="stylesheet" type="text/css">
|
||||
<script src="../dist/jsoneditor.js"></script>
|
||||
|
@ -20,7 +20,7 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Load and save JSON documents</h1>
|
||||
<h1>Load and save JSON documents in Preview mode</h1>
|
||||
<p>
|
||||
This examples uses HTML5 to load/save local files.
|
||||
Powered by <a href="http://bgrins.github.io/filereader.js/">FileReader.js</a> and
|
||||
|
@ -38,7 +38,9 @@
|
|||
|
||||
<script>
|
||||
// create the editor
|
||||
var editor = new JSONEditor(document.getElementById('jsoneditor'));
|
||||
var editor = new JSONEditor(document.getElementById('jsoneditor'), {
|
||||
mode: 'preview'
|
||||
});
|
||||
|
||||
// Load a JSON document
|
||||
FileReaderJS.setupInput(document.getElementById('loadDocument'), {
|
||||
|
|
Loading…
Reference in New Issue