preview.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 * {
  20. font-family: sans-serif;
  21. font-size: 16px;
  22. }
  23. </style>
  24. <script type="text/javascript" src="../internal.js?aea0c61c"></script>
  25. <script src="../../ueditor.parse.js?8e3d12c6"></script>
  26. <title></title>
  27. </head>
  28. <body class="view">
  29. <div id="preview" style="margin:8px">
  30. </div>
  31. </body>
  32. <script>
  33. document.getElementById('preview').innerHTML = editor.getContent();
  34. uParse('#preview', {
  35. rootPath: '../../',
  36. chartContainerHeight: 500
  37. })
  38. dialog.oncancel = function () {
  39. document.getElementById('preview').innerHTML = '';
  40. }
  41. </script>
  42. </html>