import torrus 1.0.9
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_spellerpages.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-2010 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  * Spell Check dialog window.\r
23 -->\r
24 <html>\r
25         <head>\r
26                 <title>Spell Check</title>\r
27                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
28                 <meta content="noindex, nofollow" name="robots">\r
29                 <script src="common/fck_dialog_common.js" type="text/javascript"></script>\r
30                 <script src="fck_spellerpages/spellerpages/spellChecker.js"></script>\r
31                 <script type="text/javascript">\r
32 \r
33 var oEditor = window.parent.InnerDialogLoaded() ;\r
34 var FCKLang = oEditor.FCKLang ;\r
35 \r
36 window.onload = function()\r
37 {\r
38         document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;\r
39 \r
40         var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;\r
41         oSpeller.spellCheckScript = oEditor.FCKConfig.SpellerPagesServerScript || 'server-scripts/spellchecker.php' ;\r
42         oSpeller.OnFinished = oSpeller_OnFinished ;\r
43         oSpeller.openChecker() ;\r
44 }\r
45 \r
46 function OnSpellerControlsLoad( controlsWindow )\r
47 {\r
48         // Translate the dialog box texts\r
49         oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;\r
50 }\r
51 \r
52 function oSpeller_OnFinished( numberOCorrections )\r
53 {\r
54         if ( numberOCorrections > 0 )\r
55         {\r
56                 oEditor.FCKUndo.SaveUndoStep() ;\r
57                 oEditor.FCK.EditorDocument.body.innerHTML = document.getElementById('txtHtml').value ;\r
58                 if ( oEditor.FCKBrowserInfo.IsIE )\r
59                         oEditor.FCKSelection.Collapse( true ) ;\r
60         }\r
61         window.parent.Cancel() ;\r
62 }\r
63 \r
64                 </script>\r
65         </head>\r
66         <body style="OVERFLOW: hidden" scroll="no" style="padding:0px;">\r
67                 <input type="hidden" id="txtHtml" value="">\r
68                 <iframe id="frmSpell" src="javascript:void(0)" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe>\r
69         </body>\r
70 </html>\r