-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.html
51 lines (47 loc) · 1.34 KB
/
editor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="libs/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="dbootstrap">
<script>
var lang = window.location.href.match(/lang=([^&]*)/);
if (lang != null && lang.length === 2) {
var dojoConfig = {locale: lang[1]};
}
</script>
<script src="release/dojo/dojo.js"></script>
<style>
@import "release/rdforms/view/resources/rdforms.css";
@import "release/rdforms/apps/editor/editor.css";
.dbootstrap :focus {
outline: 0px;
}
input[type="text"], input[type="password"] { outline: none; }
#container {
margin-right: 1em;
margin-left: 1em;
}
@media (min-width: 768px) { #container {
margin-right: 5em;
margin-left: 5em;
} }
html, body {
height: 100%;
width: 100%;
padding: 0px;
margin: 0px;
}
</style>
<script type="text/javascript">
require([
'dbootstrap/main',
'rdforms/apps/editor/Editor',
'dojo/domReady!'
], function (main, Editor) {
new Editor({configPath: "config/editor.json"}, "container").startup();
});
</script>
<div id="container"></div>
</body>
</html>