event refactor, landing on HEAD!
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_source.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >\r
2 <!--\r
3  * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
4  * Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
5  *\r
6  * == BEGIN LICENSE ==\r
7  *\r
8  * Licensed under the terms of any of the following licenses at your\r
9  * choice:\r
10  *\r
11  *  - GNU General Public License Version 2 or later (the "GPL")\r
12  *    http://www.gnu.org/licenses/gpl.html\r
13  *\r
14  *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
15  *    http://www.gnu.org/licenses/lgpl.html\r
16  *\r
17  *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
18  *    http://www.mozilla.org/MPL/MPL-1.1.html\r
19  *\r
20  * == END LICENSE ==\r
21  *\r
22  * Source editor dialog window.\r
23 -->\r
24 <html>\r
25         <head>\r
26                 <title>Source</title>\r
27                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
28                 <meta name="robots" content="noindex, nofollow">\r
29                 <link href="common/fck_dialog_common.css" rel="stylesheet" type="text/css" />\r
30                 <script language="javascript">\r
31 \r
32 var oEditor             = window.parent.InnerDialogLoaded() ;\r
33 var FCK                 = oEditor.FCK ;\r
34 var FCKConfig   = oEditor.FCKConfig ;\r
35 \r
36 window.onload = function()\r
37 {\r
38         // EnableXHTML and EnableSourceXHTML has been deprecated\r
39 //      document.getElementById('txtSource').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ) ) ;\r
40         document.getElementById('txtSource').value = FCK.GetXHTML( FCKConfig.FormatSource ) ;\r
41 \r
42         // Activate the "OK" button.\r
43         window.parent.SetOkButton( true ) ;\r
44 }\r
45 \r
46 //#### The OK button was hit.\r
47 function Ok()\r
48 {\r
49         if ( oEditor.FCKBrowserInfo.IsIE )\r
50                 oEditor.FCKUndo.SaveUndoStep() ;\r
51 \r
52         FCK.SetHTML( document.getElementById('txtSource').value, false ) ;\r
53 \r
54         return true ;\r
55 }\r
56                 </script>\r
57         </head>\r
58         <body scroll="no" style="OVERFLOW: hidden">\r
59                 <table width="100%" height="100%">\r
60                         <tr>\r
61                                 <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>\r
62                         </tr>\r
63                 </table>\r
64         </body>\r
65 </html>\r