-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor-dev.html
54 lines (50 loc) · 1.38 KB
/
editor-dev.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
52
53
54
<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 dojoConfig = {
async:true
};
var lang = window.location.href.match(/lang=([^&]*)/);
if (lang != null && lang.length === 2) {
dojoConfig.locale = lang[1];
}
</script>
<script src="libs/dojo/dojo.js"></script>
<style>
@import "libs/rdforms/view/resources/rdforms.css";
@import "libs/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>