preview.html 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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="../../neditor.parse.js"></script>
  23. <title></title>
  24. </head>
  25. <body class="view">
  26. <div id="preview" style="margin:8px">
  27. </div>
  28. </body>
  29. <script>
  30. document.getElementById('preview').innerHTML = editor.getContent();
  31. uParse('#preview',{
  32. rootPath : '../../',
  33. chartContainerHeight:500
  34. })
  35. dialog.oncancel = function(){
  36. document.getElementById('preview').innerHTML = '';
  37. }
  38. </script>
  39. </html>