event refactor, landing on HEAD!
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_source.html
diff --git a/httemplate/elements/fckeditor/editor/dialog/fck_source.html b/httemplate/elements/fckeditor/editor/dialog/fck_source.html
new file mode 100644 (file)
index 0000000..aba9b39
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >\r
+<!--\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ *  - GNU General Public License Version 2 or later (the "GPL")\r
+ *    http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ *    http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ *    http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * Source editor dialog window.\r
+-->\r
+<html>\r
+       <head>\r
+               <title>Source</title>\r
+               <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
+               <meta name="robots" content="noindex, nofollow">\r
+               <link href="common/fck_dialog_common.css" rel="stylesheet" type="text/css" />\r
+               <script language="javascript">\r
+\r
+var oEditor            = window.parent.InnerDialogLoaded() ;\r
+var FCK                        = oEditor.FCK ;\r
+var FCKConfig  = oEditor.FCKConfig ;\r
+\r
+window.onload = function()\r
+{\r
+       // EnableXHTML and EnableSourceXHTML has been deprecated\r
+//     document.getElementById('txtSource').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ) ) ;\r
+       document.getElementById('txtSource').value = FCK.GetXHTML( FCKConfig.FormatSource ) ;\r
+\r
+       // Activate the "OK" button.\r
+       window.parent.SetOkButton( true ) ;\r
+}\r
+\r
+//#### The OK button was hit.\r
+function Ok()\r
+{\r
+       if ( oEditor.FCKBrowserInfo.IsIE )\r
+               oEditor.FCKUndo.SaveUndoStep() ;\r
+\r
+       FCK.SetHTML( document.getElementById('txtSource').value, false ) ;\r
+\r
+       return true ;\r
+}\r
+               </script>\r
+       </head>\r
+       <body scroll="no" style="OVERFLOW: hidden">\r
+               <table width="100%" height="100%">\r
+                       <tr>\r
+                               <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
+                       </tr>\r
+               </table>\r
+       </body>\r
+</html>\r