1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
* Copyright (C) 2003-2010 Frederico Caldeira Knabben
8
* Licensed under the terms of any of the following licenses at your
11
* - GNU General Public License Version 2 or later (the "GPL")
12
* http://www.gnu.org/licenses/gpl.html
14
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
* http://www.gnu.org/licenses/lgpl.html
17
* - Mozilla Public License Version 1.1 or later (the "MPL")
18
* http://www.mozilla.org/MPL/MPL-1.1.html
22
* Spell Check dialog window.
26
<title>Spell Check</title>
27
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
28
<meta content="noindex, nofollow" name="robots">
29
<script src="common/fck_dialog_common.js" type="text/javascript"></script>
30
<script src="fck_spellerpages/spellerpages/spellChecker.js"></script>
31
<script type="text/javascript">
33
var oEditor = window.parent.InnerDialogLoaded() ;
34
var FCKLang = oEditor.FCKLang ;
36
window.onload = function()
38
document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;
40
var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;
41
oSpeller.spellCheckScript = oEditor.FCKConfig.SpellerPagesServerScript || 'server-scripts/spellchecker.php' ;
42
oSpeller.OnFinished = oSpeller_OnFinished ;
43
oSpeller.openChecker() ;
46
function OnSpellerControlsLoad( controlsWindow )
48
// Translate the dialog box texts
49
oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;
52
function oSpeller_OnFinished( numberOCorrections )
54
if ( numberOCorrections > 0 )
56
oEditor.FCKUndo.SaveUndoStep() ;
57
oEditor.FCK.EditorDocument.body.innerHTML = document.getElementById('txtHtml').value ;
58
if ( oEditor.FCKBrowserInfo.IsIE )
59
oEditor.FCKSelection.Collapse( true ) ;
61
window.parent.Cancel() ;
66
<body style="OVERFLOW: hidden" scroll="no" style="padding:0px;">
67
<input type="hidden" id="txtHtml" value="">
68
<iframe id="frmSpell" src="javascript:void(0)" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe>