wordpaste.html
1.4 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>WordPaste</title>
<style type="text/css" rel="stylesheet">
body {
margin: 0;
font:12px/1 "sans serif",tahoma,verdana,helvetica;
background-color:#F0F0EE;
color:#222222;
text-align:center;
}
#wordIframe {
width:98%;
height:260px;
border:1px solid #222222;
}
.comment {
margin-bottom: 10px;
text-align: left;
}
</style>
<script type="text/javascript">
var KE = parent.KindEditor;
location.href.match(/\?id=([\w-]+)/i);
var id = RegExp.$1;
KE.event.ready(function() {
var iframe = KE.$('wordIframe', document);
var iframeDoc = KE.util.getIframeDoc(iframe);
iframeDoc.open();
iframeDoc.write('<html><head><title>WordPaste</title></head>');
iframeDoc.write('<body style="background-color:#FFFFFF;font-size:12px;margin:2px;" />');
if (!KE.browser.IE) iframeDoc.write('<br />');
iframeDoc.write('</body></html>');
iframeDoc.close();
KE.util.pluginLang('wordpaste', document);
KE.util.hideLoadingPage(id);
window.setTimeout(function() {
if (KE.browser.IE) iframeDoc.body.contentEditable = 'true';
else iframeDoc.designMode = 'on';
}, 0);
}, window, document);
</script>
</head>
<body>
<div class="comment"><span id="lang.comment"></span></div>
<iframe id="wordIframe" name="wordIframe" frameBorder="0"></iframe>
</body>
</html>