Project

General

Profile

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
<!--
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
5
 *
6
 * == BEGIN LICENSE ==
7
 *
8
 * Licensed under the terms of any of the following licenses at your
9
 * choice:
10
 *
11
 *  - GNU General Public License Version 2 or later (the "GPL")
12
 *    http://www.gnu.org/licenses/gpl.html
13
 *
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
 *    http://www.gnu.org/licenses/lgpl.html
16
 *
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
19
 *
20
 * == END LICENSE ==
21
 *
22
 * Spell Check dialog window.
23
-->
24
<html>
25
	<head>
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="fck_spellerpages/spellerpages/spellChecker.js"></script>
30
		<script type="text/javascript">
31

    
32
var oEditor = window.parent.InnerDialogLoaded() ;
33
var FCKLang = oEditor.FCKLang ;
34

    
35
window.onload = function()
36
{
37
	document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;
38

    
39
	var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;
40
	oSpeller.spellCheckScript = oEditor.FCKConfig.SpellerPagesServerScript || 'server-scripts/spellchecker.php' ;
41
	oSpeller.OnFinished = oSpeller_OnFinished ;
42
	oSpeller.openChecker() ;
43
}
44

    
45
function OnSpellerControlsLoad( controlsWindow )
46
{
47
	// Translate the dialog box texts
48
	oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;
49
}
50

    
51
function oSpeller_OnFinished( numberOCorrections )
52
{
53
	if ( numberOCorrections > 0 )
54
		oEditor.FCK.SetData( document.getElementById('txtHtml').value ) ;
55
	window.parent.Cancel() ;
56
}
57

    
58
		</script>
59
	</head>
60
	<body style="OVERFLOW: hidden" scroll="no" style="padding:0px;">
61
		<input type="hidden" id="txtHtml" value="">
62
		<iframe id="frmSpell" src="javascript:void(0)" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe>
63
	</body>
64
</html>
(20-20/26)