event refactor, landing on HEAD!
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_spellerpages.html
diff --git a/httemplate/elements/fckeditor/editor/dialog/fck_spellerpages.html b/httemplate/elements/fckeditor/editor/dialog/fck_spellerpages.html
new file mode 100644 (file)
index 0000000..66596e1
--- /dev/null
@@ -0,0 +1,64 @@
+<!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
+ * Spell Check dialog window.\r
+-->\r
+<html>\r
+       <head>\r
+               <title>Spell Check</title>\r
+               <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
+               <meta content="noindex, nofollow" name="robots">\r
+               <script src="fck_spellerpages/spellerpages/spellChecker.js"></script>\r
+               <script type="text/javascript">\r
+\r
+var oEditor = window.parent.InnerDialogLoaded() ;\r
+var FCKLang = oEditor.FCKLang ;\r
+\r
+window.onload = function()\r
+{\r
+       document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;\r
+\r
+       var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;\r
+       oSpeller.spellCheckScript = oEditor.FCKConfig.SpellerPagesServerScript || 'server-scripts/spellchecker.php' ;\r
+       oSpeller.OnFinished = oSpeller_OnFinished ;\r
+       oSpeller.openChecker() ;\r
+}\r
+\r
+function OnSpellerControlsLoad( controlsWindow )\r
+{\r
+       // Translate the dialog box texts\r
+       oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;\r
+}\r
+\r
+function oSpeller_OnFinished( numberOCorrections )\r
+{\r
+       if ( numberOCorrections > 0 )\r
+               oEditor.FCK.SetHTML( document.getElementById('txtHtml').value ) ;\r
+       window.parent.Cancel() ;\r
+}\r
+\r
+               </script>\r
+       </head>\r
+       <body style="OVERFLOW: hidden" scroll="no" style="padding:0px;">\r
+               <input type="hidden" id="txtHtml" value="">\r
+               <iframe id="frmSpell" src="javascript:void(0)" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe>\r
+       </body>\r
+</html>\r