提交 | 用户 | 时间
|
1ac2bc
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
懒 |
2 |
"http://www.w3.org/TR/html4/loose.dtd"> |
|
3 |
<html> |
|
4 |
<head> |
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
6 |
<style> |
|
7 |
html,body{ |
|
8 |
height:100%; |
|
9 |
width:100%; |
|
10 |
padding:0; |
|
11 |
margin:0; |
|
12 |
} |
|
13 |
#preview{ |
|
14 |
width:100%; |
|
15 |
height:100%; |
|
16 |
padding:0; |
|
17 |
margin:0; |
|
18 |
} |
|
19 |
#preview *{font-family:sans-serif;font-size:16px;} |
|
20 |
</style> |
|
21 |
<script type="text/javascript" src="../internal.js"></script> |
|
22 |
<script src="../../ueditor.parse.js"></script> |
|
23 |
<title></title> |
|
24 |
</head> |
|
25 |
<body class="view"> |
|
26 |
<div id="preview" style="margin:8px"> |
|
27 |
|
|
28 |
</div> |
|
29 |
</body> |
|
30 |
<script> |
|
31 |
document.getElementById('preview').innerHTML = editor.getContent(); |
|
32 |
uParse('#preview',{ |
|
33 |
rootPath : '../../', |
|
34 |
chartContainerHeight:500 |
|
35 |
}) |
|
36 |
dialog.oncancel = function(){ |
|
37 |
document.getElementById('preview').innerHTML = ''; |
|
38 |
} |
|
39 |
</script> |
|
40 |
</html> |