Subversion Repositories Applications.papyrus

Rev

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

Rev 521 Rev 875
Line -... Line 1...
-
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!--
2
<!--
2
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for internet
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * 
5
 * 
5
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 * 
8
 * 
8
 * For further information visit:
9
 * For further information visit:
Line 14... Line 15...
14
 * 	Main page that holds the editor.
15
 * 	Main page that holds the editor.
15
 * 
16
 * 
16
 * File Authors:
17
 * File Authors:
17
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
18
-->
19
-->
19
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
20
<html xmlns="http://www.w3.org/1999/xhtml">
20
<html>
-
 
21
	<head>
21
<head>
22
		<title>FCKeditor</title>
22
	<title>FCKeditor</title>
23
		<meta name="robots" content="noindex, nofollow" />
23
	<meta name="robots" content="noindex, nofollow" />
24
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
 
25
	<meta http-equiv="Cache-Control" content="public" />
-
 
26
	<script type="text/javascript">
-
 
27
 
-
 
28
// Instead of loading scripts and CSSs using inline tags, all scripts are
-
 
29
// loaded by code. In this way we can guarantee the correct processing order,
-
 
30
// otherwise external scripts and inline scripts could be executed in an
-
 
31
// unwanted order (IE).
-
 
32
 
-
 
33
function LoadScript( url )
-
 
34
{
25
		<script type="text/javascript" src="lang/fcklanguagemanager.js"></script>
35
	document.write( '<script type="text/javascript" src="' + url + '" onerror="alert(\'Error loading \' + this.src);"><\/script>' ) ;
-
 
36
}
-
 
37
 
-
 
38
function LoadCss( url )
-
 
39
{
-
 
40
	document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" onerror="alert(\'Error loading \' + this.src);" />' ) ;
-
 
41
}
-
 
42
 
-
 
43
// Main editor scripts.
-
 
44
var sSuffix = /msie/.test( navigator.userAgent.toLowerCase() ) ? 'ie' : 'gecko' ;
-
 
45
 
-
 
46
LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ;
-
 
47
 
-
 
48
// Base configuration file.
-
 
49
LoadScript( '../fckconfig.js' ) ;
-
 
50
 
-
 
51
	</script>
-
 
52
	<script type="text/javascript">
-
 
53
 
-
 
54
// Create the default cleanup object used by the editor.
-
 
55
if ( FCKBrowserInfo.IsIE )
-
 
56
{
-
 
57
	FCK.IECleanup = new FCKIECleanup( window ) ;
-
 
58
	FCK.IECleanup.AddItem( FCKTempBin, FCKTempBin.Reset ) ;
-
 
59
	FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ;
-
 
60
}
-
 
61
 
-
 
62
// The config hidden field is processed immediately, because
-
 
63
// CustomConfigurationsPath may be set in the page.
-
 
64
FCKConfig.ProcessHiddenField() ;
-
 
65
 
-
 
66
// Load the custom configurations file (if defined).
-
 
67
if ( FCKConfig.CustomConfigurationsPath.length > 0 )
-
 
68
	LoadScript( FCKConfig.CustomConfigurationsPath ) ;
-
 
69
 
-
 
70
	</script>
-
 
71
	<script type="text/javascript">
-
 
72
 
-
 
73
// Load configurations defined at page level.
-
 
74
FCKConfig_LoadPageConfig() ;
-
 
75
 
-
 
76
FCKConfig_PreProcess() ;
-
 
77
 
-
 
78
// Load the active skin CSS.
-
 
79
LoadCss( FCKConfig.SkinPath + 'fck_editor.css' ) ;
-
 
80
 
-
 
81
// Load the language file.
-
 
82
FCKLanguageManager.Initialize() ;
-
 
83
LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;
-
 
84
 
-
 
85
	</script>
-
 
86
	<script type="text/javascript">
-
 
87
 
26
		<meta http-equiv="Cache-Control" content="public">
88
// Initialize the editing area context menu.
-
 
89
FCK_ContextMenu_Init() ;
-
 
90
 
-
 
91
FCKPlugins.Load() ;
-
 
92
 
-
 
93
	</script>
-
 
94
	<script type="text/javascript">
-
 
95
	
-
 
96
// Set the editor interface direction.
-
 
97
window.document.dir = FCKLang.Dir ;
-
 
98
 
-
 
99
// Activate pasting operations.
-
 
100
if ( FCKConfig.ForcePasteAsPlainText || FCKConfig.AutoDetectPasteFromWord )
-
 
101
	FCK.Events.AttachEvent( "OnPaste", FCK.Paste ) ;
-
 
102
 
-
 
103
	</script>
27
		<script type="text/javascript" src="js/fck_startup.js"></script>
104
	<script type="text/javascript">
-
 
105
 
-
 
106
window.onload = function()
-
 
107
{
-
 
108
	InitializeAPI() ;
-
 
109
 
-
 
110
	if ( FCKBrowserInfo.IsIE )
-
 
111
		FCK_PreloadImages() ;
-
 
112
	else
-
 
113
		LoadToolbarSetup() ;
-
 
114
}
-
 
115
 
-
 
116
function LoadToolbarSetup()
-
 
117
{
-
 
118
	FCKeditorAPI._FunctionQueue.Add( LoadToolbar ) ;
-
 
119
}
-
 
120
 
-
 
121
function LoadToolbar()
-
 
122
{
-
 
123
	var oToolbarSet = FCK.ToolbarSet = FCKToolbarSet_Create() ;
-
 
124
	
-
 
125
	if ( oToolbarSet.IsLoaded )
-
 
126
		StartEditor() ;
-
 
127
	else
-
 
128
	{
-
 
129
		oToolbarSet.OnLoad = StartEditor ;
-
 
130
		oToolbarSet.Load( FCKURLParams['Toolbar'] || 'Default' ) ;
-
 
131
	}
-
 
132
}
-
 
133
 
-
 
134
function StartEditor()
-
 
135
{
-
 
136
	// Remove the onload listener.
-
 
137
	FCK.ToolbarSet.OnLoad = null ;
-
 
138
 
-
 
139
	FCKeditorAPI._FunctionQueue.Remove( LoadToolbar ) ;
-
 
140
 
-
 
141
	FCK.Events.AttachEvent( 'OnStatusChange', WaitForActive ) ;
-
 
142
 
-
 
143
	// Start the editor.
-
 
144
	FCK.StartEditor() ;
-
 
145
}
-
 
146
 
-
 
147
function WaitForActive( editorInstance, newStatus )
-
 
148
{
-
 
149
	if ( newStatus == FCK_STATUS_ACTIVE )
-
 
150
	{
-
 
151
		if ( FCKBrowserInfo.IsGecko )
-
 
152
			FCKTools.RunFunction( window.onresize ) ;
-
 
153
 
-
 
154
		FCK.SetStatus( FCK_STATUS_COMPLETE ) ;
-
 
155
 
-
 
156
		// Call the special "FCKeditor_OnComplete" function that should be present in 
-
 
157
		// the HTML page where the editor is located.
-
 
158
		if ( typeof( window.parent.FCKeditor_OnComplete ) == 'function' )
-
 
159
			window.parent.FCKeditor_OnComplete( FCK ) ;	
-
 
160
	}
-
 
161
}
-
 
162
 
-
 
163
// Gecko browsers doens't calculate well that IFRAME size so we must
-
 
164
// recalculate it every time the window size changes.
-
 
165
if ( FCKBrowserInfo.IsGecko )
-
 
166
{
-
 
167
	function Window_OnResize()
-
 
168
	{
-
 
169
		var oCell = document.getElementById( 'xEditingArea' ) ;
-
 
170
 
-
 
171
		var eInnerElement ;
-
 
172
		if ( eInnerElement = oCell.firstChild )
-
 
173
		{
-
 
174
			eInnerElement.style.height = 0 ;
-
 
175
			eInnerElement.style.height = oCell.scrollHeight - 2 ;
-
 
176
		}
-
 
177
	}
-
 
178
	window.onresize = Window_OnResize ;
-
 
179
}
-
 
180
 
-
 
181
	</script>
28
	</head>
182
</head>
29
	<body>
183
<body>
30
		<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0" style="TABLE-LAYOUT: fixed">
184
	<table width="100%" cellpadding="0" cellspacing="0" style="height: 100%; table-layout: fixed">
31
			<tr>
185
		<tr id="xToolbarRow" style="display: none">
32
				<td unselectable="on" style="OVERFLOW: hidden">
186
			<td id="xToolbarSpace" style="overflow: hidden">
33
					<table width="100%" cellpadding="0" cellspacing="0" border="0">
187
				<table width="100%" cellpadding="0" cellspacing="0">
34
						<tr id="Collapsed" style="DISPLAY: none">
188
					<tr id="xCollapsed" style="display: none">
-
 
189
						<td id="xExpandHandle" class="TB_Expand" colspan="3">
35
							<td id="ExpandHandle" class="TB_Expand" unselectable="on" colspan="3" onclick="FCKToolbarSet.Expand();return false;"><img class="TB_ExpandImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td>
190
							<img class="TB_ExpandImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>
36
						</tr>
191
					</tr>
37
						<tr id="Expanded" style="DISPLAY: none">
192
					<tr id="xExpanded" style="display: none">
-
 
193
						<td id="xTBLeftBorder" class="TB_SideBorder" style="width: 1px; display: none;"></td>
38
							<td id="CollapseHandle" style="DISPLAY: none" class="TB_Collapse" 
194
						<td id="xCollapseHandle" style="display: none" class="TB_Collapse" valign="bottom">
39
								unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td>
195
							<img class="TB_CollapseImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>
40
							<td id="eToolbar" class="TB_ToolbarSet" unselectable="on"></td>
196
						<td id="xToolbar" class="TB_ToolbarSet"></td>
41
							<td width="1" class="TB_SideBorder"></td>
197
						<td class="TB_SideBorder" style="width: 1px"></td>
42
						</tr>
198
					</tr>
43
					</table>
199
				</table>
44
				</td>
200
			</td>
45
			</tr>
201
		</tr>
46
			<tr id="eWysiwyg">
202
		<tr style="height: 100%">
47
				<td id="eWysiwygCell" height="100%" valign="top">
203
			<td id="xEditingArea" valign="top"></td>
48
					<iframe id="eEditorArea" name="eEditorArea" height="100%" width="100%" frameborder="no" src="fckblank.html"></iframe>
-
 
49
				</td>
-
 
50
			</tr>
-
 
51
			<tr id="eSource" style="DISPLAY: none">
-
 
52
				<td class="Source" height="100%" valign="top">
-
 
53
					<textarea id="eSourceField" dir="ltr" style="WIDTH: 100%; HEIGHT: 100%"></textarea>
-
 
54
				</td>
-
 
55
			</tr>
204
		</tr>
56
		</table>
205
	</table>
57
	</body>
206
</body>
58
</html>
207
</html>