-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheditor.html
32 lines (30 loc) · 1.04 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
<head>
<script type="text/javascript" src="codemirror/codemirror.js"></script>
<link rel="stylesheet" href="codemirror/codemirror.css">
<script type="text/javascript" src="mode/xml/xml.js"></script>
<script type="text/javascript" src="mode/javascript/javascript.js"></script>
<script type="text/javascript" src="mode/css/css.js"></script>
<script type="text/javascript" src="mode/htmlmixed/htmlmixed.js"></script>
<title>editor</title>
<style type="text/css">
html, body, .expand { width: 100%; height: 100%; }
html, body, .close { border: none; margin: 0px; padding: 0px; }
html, body { overflow: hidden; }
div.CodeMirror { height: 100%;}
</style>
<script type="text/javascript">
function check() {
if (!window.parent || !window.parent.editbox) {
window.location = '/editor.html'
}
}
check()
</script>
</head>
<body class="expand close">
<form class="expand close" name="f">
<textarea class="expand close" style="background: #def;" spellcheck="false" id="ta"></textarea>
</form>
</body>
<template name="hello">
</template>