Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
Line 1... Line 1...
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">
Line 27... Line 32...
27
 
32
 
28
var oEditor = window.parent.InnerDialogLoaded() ;
33
var oEditor = window.parent.InnerDialogLoaded() ;
Line 31... Line 36...
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 ;
Line 34... Line 39...
34
 
39
 
-
 
40
	var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;
35
	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() ;
Line 38... Line 44...
38
}
44
}
Line 44... Line 50...
44
}
50
}
Line 45... Line 51...
45
 
51
 
46
function oSpeller_OnFinished( numberOCorrections )
52
function oSpeller_OnFinished( numberOCorrections )
47
{
53
{
-
 
54
	if ( numberOCorrections > 0 )
-
 
55
	{
48
	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 ) ;
49
		oEditor.FCK.SetHTML( document.getElementById('txtHtml').value ) ;
60
	}
50
	window.parent.Cancel() ;
61
	window.parent.Cancel() ;
Line 51... Line 62...
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>