Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
<!--
2
<!--
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
-
 
5
 *
-
 
6
 * == BEGIN LICENSE ==
5
 * 
7
 *
6
 * Licensed under the terms of the GNU Lesser General Public License:
8
 * Licensed under the terms of any of the following licenses at your
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
9
 * choice:
8
 * 
10
 *
9
 * For further information visit:
11
 *  - GNU General Public License Version 2 or later (the "GPL")
10
 * 		http://www.fckeditor.net/
12
 *    http://www.gnu.org/licenses/gpl.html
11
 * 
13
 *
12
 * "Support Open Source software. What about a donation today?"
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
-
 
15
 *    http://www.gnu.org/licenses/lgpl.html
13
 * 
16
 *
14
 * File Name: fck_spellerpages.html
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
15
 * 	Spell Check dialog window.
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
16
 * 
19
 *
17
 * File Authors:
20
 * == END LICENSE ==
-
 
21
 *
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
22
 * Spell Check dialog window.
19
-->
23
-->
20
<html>
24
<html>
21
	<head>
25
	<head>
22
		<title>Spell Check</title>
26
		<title>Spell Check</title>
23
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
27
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
24
		<meta content="noindex, nofollow" name="robots">
28
		<meta content="noindex, nofollow" name="robots">
-
 
29
		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
25
		<script src="fck_spellerpages/spellerpages/spellChecker.js"></script>
30
		<script src="fck_spellerpages/spellerpages/spellChecker.js"></script>
26
		<script type="text/javascript">
31
		<script type="text/javascript">
27
 
32
 
28
var oEditor = window.parent.InnerDialogLoaded() ;
33
var oEditor = window.parent.InnerDialogLoaded() ;
29
var FCKLang = oEditor.FCKLang ;
34
var FCKLang = oEditor.FCKLang ;
30
 
35
 
31
window.onload = function()
36
window.onload = function()
32
{
37
{
33
	document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;
38
	document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;
34
 
39
 
35
	var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;
40
	var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;
-
 
41
	oSpeller.spellCheckScript = oEditor.FCKConfig.SpellerPagesServerScript || 'server-scripts/spellchecker.php' ;
36
	oSpeller.OnFinished = oSpeller_OnFinished ;
42
	oSpeller.OnFinished = oSpeller_OnFinished ;
37
	oSpeller.openChecker() ;
43
	oSpeller.openChecker() ;
38
}
44
}
39
 
45
 
40
function OnSpellerControlsLoad( controlsWindow )
46
function OnSpellerControlsLoad( controlsWindow )
41
{
47
{
42
	// Translate the dialog box texts
48
	// Translate the dialog box texts
43
	oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;
49
	oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;
44
}
50
}
45
 
51
 
46
function oSpeller_OnFinished( numberOCorrections )
52
function oSpeller_OnFinished( numberOCorrections )
47
{
53
{
48
	if ( numberOCorrections > 0 )
54
	if ( numberOCorrections > 0 )
-
 
55
	{
-
 
56
		oEditor.FCKUndo.SaveUndoStep() ;
49
		oEditor.FCK.SetHTML( document.getElementById('txtHtml').value ) ;
57
		oEditor.FCK.EditorDocument.body.innerHTML = document.getElementById('txtHtml').value ;
-
 
58
		if ( oEditor.FCKBrowserInfo.IsIE )
-
 
59
			oEditor.FCKSelection.Collapse( true ) ;
-
 
60
	}
50
	window.parent.Cancel() ;
61
	window.parent.Cancel() ;
51
}
62
}
52
 
63
 
53
		</script>
64
		</script>
54
	</head>
65
	</head>
55
	<body style="OVERFLOW: hidden" scroll="no" style="padding:0px;">
66
	<body style="OVERFLOW: hidden" scroll="no" style="padding:0px;">
56
		<input type="hidden" id="txtHtml" value="">
67
		<input type="hidden" id="txtHtml" value="">
57
		<iframe id="frmSpell" src="../fckblank.html" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe>
68
		<iframe id="frmSpell" src="javascript:void(0)" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe>
58
	</body>
69
	</body>
59
</html>
70
</html>