fck_source.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  2. <!--
  3. * FCKeditor - The text editor for Internet - http://www.fckeditor.net
  4. * Copyright (C) 2003-2010 Frederico Caldeira Knabben
  5. *
  6. * == BEGIN LICENSE ==
  7. *
  8. * Licensed under the terms of any of the following licenses at your
  9. * choice:
  10. *
  11. * - GNU General Public License Version 2 or later (the "GPL")
  12. * http://www.gnu.org/licenses/gpl.html
  13. *
  14. * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15. * http://www.gnu.org/licenses/lgpl.html
  16. *
  17. * - Mozilla Public License Version 1.1 or later (the "MPL")
  18. * http://www.mozilla.org/MPL/MPL-1.1.html
  19. *
  20. * == END LICENSE ==
  21. *
  22. * Source editor dialog window.
  23. -->
  24. <html>
  25. <head>
  26. <title>Source</title>
  27. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  28. <meta name="robots" content="noindex, nofollow">
  29. <script src="common/fck_dialog_common.js" type="text/javascript"></script>
  30. <script language="javascript">
  31. var oEditor = window.parent.InnerDialogLoaded() ;
  32. var FCK = oEditor.FCK ;
  33. var FCKConfig = oEditor.FCKConfig ;
  34. var FCKTools = oEditor.FCKTools ;
  35. document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ;
  36. window.onload = function()
  37. {
  38. // EnableXHTML and EnableSourceXHTML has been deprecated
  39. // document.getElementById('txtSource').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ) ) ;
  40. document.getElementById('txtSource').value = FCK.GetXHTML( FCKConfig.FormatSource ) ;
  41. // Activate the "OK" button.
  42. window.parent.SetOkButton( true ) ;
  43. }
  44. //#### The OK button was hit.
  45. function Ok()
  46. {
  47. if ( oEditor.FCKBrowserInfo.IsIE )
  48. oEditor.FCKUndo.SaveUndoStep() ;
  49. FCK.SetData( document.getElementById('txtSource').value, false ) ;
  50. return true ;
  51. }
  52. </script>
  53. <style type="text/css">
  54. body, td, input, textarea, select, label { font-family: Arial, Verdana, Geneva, helvetica, sans-serif; font-size: 11px; }
  55. </style>
  56. </head>
  57. <body scroll="no" style="OVERFLOW: hidden">
  58. <table width="100%" height="100%">
  59. <tr>
  60. <td height="100%"><textarea id="txtSource" dir="ltr" style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 14px; PADDING-BOTTOM: 5px; WIDTH: 100%; PADDING-TOP: 5px; FONT-FAMILY: Monospace; HEIGHT: 100%">Loading. Please wait...</textarea></td>
  61. </tr>
  62. </table>
  63. </body>
  64. </html>