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: fckeditor.original.html
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
15
 * 	Main page that holds the editor.
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
 * Main page that holds the editor.
19
-->
23
-->
20
<html xmlns="http://www.w3.org/1999/xhtml">
24
<html>
21
<head>
25
<head>
22
	<title>FCKeditor</title>
26
	<title>FCKeditor</title>
23
	<meta name="robots" content="noindex, nofollow" />
27
	<meta name="robots" content="noindex, nofollow">
24
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
25
	<!-- @Packager.RemoveLine
29
	<!-- @Packager.RemoveLine
26
	<meta http-equiv="Cache-Control" content="public" />
30
	<meta http-equiv="Cache-Control" content="public">
27
	@Packager.RemoveLine -->
31
	@Packager.RemoveLine -->
28
	<script type="text/javascript">
32
	<script type="text/javascript">
-
 
33
 
-
 
34
// #1645: Alert the user if opening FCKeditor in FF3 from local filesystem
-
 
35
// without security.fileuri.strict_origin_policy disabled.
-
 
36
if ( document.location.protocol == 'file:' )
-
 
37
{
-
 
38
	try
-
 
39
	{
-
 
40
		window.parent.document.domain ;
-
 
41
	}
-
 
42
	catch ( e )
-
 
43
	{
-
 
44
		window.addEventListener( 'load', function()
-
 
45
			{
-
 
46
				document.body.innerHTML = '\
-
 
47
					<div style="border: 1px red solid; font-family: arial; font-size: 12px; color: red; padding:10px;">\
-
 
48
						<p>\
-
 
49
							<b>Your browser security settings don\'t allow FCKeditor to be opened from\
-
 
50
							the local filesystem.<\/b>\
-
 
51
						<\/p>\
-
 
52
						<p>\
-
 
53
							Please open the <b>about:config<\/b> page and disable the\
-
 
54
							&quot;security.fileuri.strict_origin_policy&quot; option; then load this page again.\
-
 
55
						<\/p>\
-
 
56
						<p>\
-
 
57
							Check our <a href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/FAQ#ff3perms">FAQ<\/a>\
-
 
58
							for more information.\
-
 
59
						<\/p>\
-
 
60
					<\/div>' ;
-
 
61
			}, false ) ;
-
 
62
	}
-
 
63
}
-
 
64
 
-
 
65
// Save a reference to the default domain.
-
 
66
var FCK_ORIGINAL_DOMAIN ;
-
 
67
 
-
 
68
// Automatically detect the correct document.domain (#123).
-
 
69
(function()
-
 
70
{
-
 
71
	var d = FCK_ORIGINAL_DOMAIN = document.domain ;
-
 
72
 
-
 
73
	while ( true )
-
 
74
	{
-
 
75
		// Test if we can access a parent property.
-
 
76
		try
-
 
77
		{
-
 
78
			var test = window.parent.document.domain ;
-
 
79
			break ;
-
 
80
		}
-
 
81
		catch( e ) {}
-
 
82
 
-
 
83
		// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
-
 
84
		d = d.replace( /.*?(?:\.|$)/, '' ) ;
-
 
85
 
-
 
86
		if ( d.length == 0 )
-
 
87
			break ;		// It was not able to detect the domain.
-
 
88
 
-
 
89
		try
-
 
90
		{
-
 
91
			document.domain = d ;
-
 
92
		}
-
 
93
		catch (e)
-
 
94
		{
-
 
95
			break ;
-
 
96
		}
-
 
97
	}
-
 
98
})() ;
-
 
99
 
-
 
100
// Save a reference to the detected runtime domain.
-
 
101
var FCK_RUNTIME_DOMAIN = document.domain ;
-
 
102
 
-
 
103
var FCK_IS_CUSTOM_DOMAIN = ( FCK_ORIGINAL_DOMAIN != FCK_RUNTIME_DOMAIN ) ;
29
 
104
 
30
// Instead of loading scripts and CSSs using inline tags, all scripts are
105
// Instead of loading scripts and CSSs using inline tags, all scripts are
31
// loaded by code. In this way we can guarantee the correct processing order,
106
// loaded by code. In this way we can guarantee the correct processing order,
32
// otherwise external scripts and inline scripts could be executed in an
107
// otherwise external scripts and inline scripts could be executed in an
33
// unwanted order (IE).
108
// unwanted order (IE).
34
 
109
 
35
function LoadScript( url )
110
function LoadScript( url )
36
{
111
{
37
	document.write( '<script type="text/javascript" src="' + url + '" onerror="alert(\'Error loading \' + this.src);"><\/script>' ) ;
112
	document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ;
38
}
-
 
39
 
-
 
40
function LoadCss( url )
-
 
41
{
-
 
42
	document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" onerror="alert(\'Error loading \' + this.src);" />' ) ;
-
 
43
}
113
}
44
 
114
 
45
// Main editor scripts.
115
// Main editor scripts.
46
var sSuffix = /msie/.test( navigator.userAgent.toLowerCase() ) ? 'ie' : 'gecko' ;
116
var sSuffix = ( /*@cc_on!@*/false ) ? 'ie' : 'gecko' ;
47
 
117
 
48
/* @Packager.RemoveLine
118
/* @Packager.RemoveLine
49
LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ;
119
LoadScript( 'js/fckeditorcode_' + sSuffix + '.js' ) ;
50
@Packager.RemoveLine */
120
@Packager.RemoveLine */
51
// @Packager.Remove.Start
121
// @Packager.Remove.Start
52
 
122
 
53
LoadScript( '_source/fckconstants.js' ) ;
123
LoadScript( '_source/fckconstants.js' ) ;
54
LoadScript( '_source/fckjscoreextensions.js' ) ;
124
LoadScript( '_source/fckjscoreextensions.js' ) ;
55
 
125
 
56
if ( sSuffix == 'ie' )
126
if ( sSuffix == 'ie' )
57
	LoadScript( '_source/classes/fckiecleanup.js' ) ;
127
	LoadScript( '_source/classes/fckiecleanup.js' ) ;
58
 
128
 
59
LoadScript( '_source/internals/fckbrowserinfo.js' ) ;
129
LoadScript( '_source/internals/fckbrowserinfo.js' ) ;
60
LoadScript( '_source/internals/fckurlparams.js' ) ;
130
LoadScript( '_source/internals/fckurlparams.js' ) ;
-
 
131
LoadScript( '_source/classes/fckevents.js' ) ;
-
 
132
LoadScript( '_source/classes/fckdataprocessor.js' ) ;
61
LoadScript( '_source/internals/fck.js' ) ;
133
LoadScript( '_source/internals/fck.js' ) ;
-
 
134
LoadScript( '_source/internals/fck_' + sSuffix + '.js' ) ;
62
LoadScript( '_source/internals/fckconfig.js' ) ;
135
LoadScript( '_source/internals/fckconfig.js' ) ;
63
 
136
 
-
 
137
LoadScript( '_source/internals/fckdebug_empty.js' ) ;
64
LoadScript( '_source/internals/fckdebug.js' ) ;
138
LoadScript( '_source/internals/fckdomtools.js' ) ;
65
LoadScript( '_source/internals/fcktools.js' ) ;
139
LoadScript( '_source/internals/fcktools.js' ) ;
66
LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ;
140
LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ;
67
LoadScript( '_source/fckeditorapi.js' ) ;
141
LoadScript( '_source/fckeditorapi.js' ) ;
-
 
142
LoadScript( '_source/classes/fckimagepreloader.js' ) ;
68
LoadScript( '_source/internals/fckregexlib.js' ) ;
143
LoadScript( '_source/internals/fckregexlib.js' ) ;
-
 
144
LoadScript( '_source/internals/fcklistslib.js' ) ;
69
LoadScript( '_source/internals/fcklanguagemanager.js' ) ;
145
LoadScript( '_source/internals/fcklanguagemanager.js' ) ;
70
LoadScript( '_source/classes/fckevents.js' ) ;
-
 
71
LoadScript( '_source/internals/fckxhtmlentities.js' ) ;
146
LoadScript( '_source/internals/fckxhtmlentities.js' ) ;
72
LoadScript( '_source/internals/fckxhtml.js' ) ;
147
LoadScript( '_source/internals/fckxhtml.js' ) ;
73
LoadScript( '_source/internals/fckxhtml_' + sSuffix + '.js' ) ;
148
LoadScript( '_source/internals/fckxhtml_' + sSuffix + '.js' ) ;
74
LoadScript( '_source/internals/fckcodeformatter.js' ) ;
149
LoadScript( '_source/internals/fckcodeformatter.js' ) ;
75
LoadScript( '_source/internals/fckundo_' + sSuffix + '.js' ) ;
150
LoadScript( '_source/internals/fckundo.js' ) ;
76
LoadScript( '_source/classes/fckeditingarea.js' ) ;
151
LoadScript( '_source/classes/fckeditingarea.js' ) ;
-
 
152
LoadScript( '_source/classes/fckkeystrokehandler.js' ) ;
-
 
153
 
-
 
154
LoadScript( 'dtd/fck_xhtml10transitional.js' ) ;
-
 
155
LoadScript( '_source/classes/fckstyle.js' ) ;
-
 
156
LoadScript( '_source/internals/fckstyles.js' ) ;
-
 
157
 
-
 
158
LoadScript( '_source/internals/fcklisthandler.js' ) ;
-
 
159
LoadScript( '_source/classes/fckelementpath.js' ) ;
-
 
160
LoadScript( '_source/classes/fckdomrange.js' ) ;
-
 
161
LoadScript( '_source/classes/fckdocumentfragment_' + sSuffix + '.js' ) ;
-
 
162
LoadScript( '_source/classes/fckw3crange.js' ) ;
-
 
163
LoadScript( '_source/classes/fckdomrange_' + sSuffix + '.js' ) ;
-
 
164
LoadScript( '_source/classes/fckdomrangeiterator.js' ) ;
-
 
165
LoadScript( '_source/classes/fckenterkey.js' ) ;
-
 
166
 
77
LoadScript( '_source/internals/fckdocumentprocessor.js' ) ;
167
LoadScript( '_source/internals/fckdocumentprocessor.js' ) ;
78
LoadScript( '_source/internals/fck_1.js' ) ;
-
 
79
LoadScript( '_source/internals/fck_1_' + sSuffix + '.js' ) ;
-
 
80
LoadScript( '_source/internals/fck_2.js' ) ;
-
 
81
LoadScript( '_source/internals/fck_2_' + sSuffix + '.js' ) ;
-
 
82
LoadScript( '_source/internals/fckselection.js' ) ;
168
LoadScript( '_source/internals/fckselection.js' ) ;
83
LoadScript( '_source/internals/fckselection_' + sSuffix + '.js' ) ;
169
LoadScript( '_source/internals/fckselection_' + sSuffix + '.js' ) ;
84
 
170
 
85
LoadScript( '_source/internals/fcktablehandler.js' ) ;
171
LoadScript( '_source/internals/fcktablehandler.js' ) ;
86
LoadScript( '_source/internals/fcktablehandler_' + sSuffix + '.js' ) ;
172
LoadScript( '_source/internals/fcktablehandler_' + sSuffix + '.js' ) ;
-
 
173
LoadScript( '_source/classes/fckxml.js' ) ;
87
LoadScript( '_source/classes/fckxml_' + sSuffix + '.js' ) ;
174
LoadScript( '_source/classes/fckxml_' + sSuffix + '.js' ) ;
88
LoadScript( '_source/classes/fckstyledef.js' ) ;
-
 
89
LoadScript( '_source/classes/fckstyledef_' + sSuffix + '.js' ) ;
-
 
90
LoadScript( '_source/classes/fckstylesloader.js' ) ;
-
 
91
 
175
 
-
 
176
LoadScript( '_source/commandclasses/fcknamedcommand.js' ) ;
92
LoadScript( '_source/commandclasses/fcknamedcommand.js' ) ;
177
LoadScript( '_source/commandclasses/fckstylecommand.js' ) ;
-
 
178
LoadScript( '_source/commandclasses/fck_othercommands.js' ) ;
93
LoadScript( '_source/commandclasses/fck_othercommands.js' ) ;
179
LoadScript( '_source/commandclasses/fckshowblocks.js' ) ;
94
LoadScript( '_source/commandclasses/fckspellcheckcommand_' + sSuffix + '.js' ) ;
180
LoadScript( '_source/commandclasses/fckspellcheckcommand_' + sSuffix + '.js' ) ;
95
LoadScript( '_source/commandclasses/fcktextcolorcommand.js' ) ;
181
LoadScript( '_source/commandclasses/fcktextcolorcommand.js' ) ;
96
LoadScript( '_source/commandclasses/fckpasteplaintextcommand.js' ) ;
182
LoadScript( '_source/commandclasses/fckpasteplaintextcommand.js' ) ;
97
LoadScript( '_source/commandclasses/fckpastewordcommand.js' ) ;
183
LoadScript( '_source/commandclasses/fckpastewordcommand.js' ) ;
98
LoadScript( '_source/commandclasses/fcktablecommand.js' ) ;
184
LoadScript( '_source/commandclasses/fcktablecommand.js' ) ;
99
LoadScript( '_source/commandclasses/fckstylecommand.js' ) ;
-
 
100
LoadScript( '_source/commandclasses/fckfitwindow.js' ) ;
185
LoadScript( '_source/commandclasses/fckfitwindow.js' ) ;
-
 
186
LoadScript( '_source/commandclasses/fcklistcommands.js' ) ;
-
 
187
LoadScript( '_source/commandclasses/fckjustifycommands.js' ) ;
-
 
188
LoadScript( '_source/commandclasses/fckindentcommands.js' ) ;
-
 
189
LoadScript( '_source/commandclasses/fckblockquotecommand.js' ) ;
-
 
190
LoadScript( '_source/commandclasses/fckcorestylecommand.js' ) ;
-
 
191
LoadScript( '_source/commandclasses/fckremoveformatcommand.js' ) ;
101
LoadScript( '_source/internals/fckcommands.js' ) ;
192
LoadScript( '_source/internals/fckcommands.js' ) ;
102
 
193
 
103
LoadScript( '_source/classes/fckpanel.js' ) ;
194
LoadScript( '_source/classes/fckpanel.js' ) ;
104
LoadScript( '_source/classes/fckicon.js' ) ;
195
LoadScript( '_source/classes/fckicon.js' ) ;
105
LoadScript( '_source/classes/fcktoolbarbuttonui.js' ) ;
196
LoadScript( '_source/classes/fcktoolbarbuttonui.js' ) ;
106
LoadScript( '_source/classes/fcktoolbarbutton.js' ) ;
197
LoadScript( '_source/classes/fcktoolbarbutton.js' ) ;
107
LoadScript( '_source/classes/fckspecialcombo.js' ) ;
198
LoadScript( '_source/classes/fckspecialcombo.js' ) ;
108
LoadScript( '_source/classes/fcktoolbarspecialcombo.js' ) ;
199
LoadScript( '_source/classes/fcktoolbarspecialcombo.js' ) ;
-
 
200
LoadScript( '_source/classes/fcktoolbarstylecombo.js' ) ;
-
 
201
LoadScript( '_source/classes/fcktoolbarfontformatcombo.js' ) ;
109
LoadScript( '_source/classes/fcktoolbarfontscombo.js' ) ;
202
LoadScript( '_source/classes/fcktoolbarfontscombo.js' ) ;
110
LoadScript( '_source/classes/fcktoolbarfontsizecombo.js' ) ;
203
LoadScript( '_source/classes/fcktoolbarfontsizecombo.js' ) ;
111
LoadScript( '_source/classes/fcktoolbarfontformatcombo.js' ) ;
-
 
112
LoadScript( '_source/classes/fcktoolbarstylecombo.js' ) ;
-
 
113
LoadScript( '_source/classes/fcktoolbarpanelbutton.js' ) ;
204
LoadScript( '_source/classes/fcktoolbarpanelbutton.js' ) ;
114
LoadScript( '_source/internals/fcktoolbaritems.js' ) ;
205
LoadScript( '_source/internals/fcktoolbaritems.js' ) ;
115
LoadScript( '_source/classes/fcktoolbar.js' ) ;
206
LoadScript( '_source/classes/fcktoolbar.js' ) ;
116
LoadScript( '_source/classes/fcktoolbarbreak_' + sSuffix + '.js' ) ;
207
LoadScript( '_source/classes/fcktoolbarbreak_' + sSuffix + '.js' ) ;
117
LoadScript( '_source/internals/fcktoolbarset.js' ) ;
208
LoadScript( '_source/internals/fcktoolbarset.js' ) ;
118
LoadScript( '_source/internals/fckdialog.js' ) ;
209
LoadScript( '_source/internals/fckdialog.js' ) ;
119
LoadScript( '_source/internals/fckdialog_' + sSuffix + '.js' ) ;
-
 
120
LoadScript( '_source/classes/fckmenuitem.js' ) ;
210
LoadScript( '_source/classes/fckmenuitem.js' ) ;
121
LoadScript( '_source/classes/fckmenublock.js' ) ;
211
LoadScript( '_source/classes/fckmenublock.js' ) ;
122
LoadScript( '_source/classes/fckmenublockpanel.js' ) ;
212
LoadScript( '_source/classes/fckmenublockpanel.js' ) ;
123
LoadScript( '_source/classes/fckcontextmenu.js' ) ;
213
LoadScript( '_source/classes/fckcontextmenu.js' ) ;
124
LoadScript( '_source/internals/fck_contextmenu.js' ) ;
214
LoadScript( '_source/internals/fck_contextmenu.js' ) ;
-
 
215
LoadScript( '_source/classes/fckhtmliterator.js' ) ;
125
LoadScript( '_source/classes/fckplugin.js' ) ;
216
LoadScript( '_source/classes/fckplugin.js' ) ;
126
LoadScript( '_source/internals/fckplugins.js' ) ;
217
LoadScript( '_source/internals/fckplugins.js' ) ;
127
 
218
 
128
// @Packager.Remove.End
219
// @Packager.Remove.End
129
 
220
 
130
// Base configuration file.
221
// Base configuration file.
131
LoadScript( '../fckconfig.js' ) ;
222
LoadScript( '../fckconfig.js' ) ;
132
 
223
 
133
	</script>
224
	</script>
134
	<script type="text/javascript">
225
	<script type="text/javascript">
135
 
226
 
-
 
227
// Adobe AIR compatibility file.
-
 
228
if ( FCKBrowserInfo.IsAIR )
-
 
229
	LoadScript( 'js/fckadobeair.js' ) ;
136
// Create the default cleanup object used by the editor.
230
 
137
if ( FCKBrowserInfo.IsIE )
231
if ( FCKBrowserInfo.IsIE )
-
 
232
{
-
 
233
	// Remove IE mouse flickering.
-
 
234
	try
-
 
235
	{
-
 
236
		document.execCommand( 'BackgroundImageCache', false, true ) ;
-
 
237
	}
-
 
238
	catch (e)
-
 
239
	{
-
 
240
		// We have been reported about loading problems caused by the above
-
 
241
		// line. For safety, let's just ignore errors.
-
 
242
	}
-
 
243
 
138
{
244
	// Create the default cleanup object used by the editor.
139
	FCK.IECleanup = new FCKIECleanup( window ) ;
245
	FCK.IECleanup = new FCKIECleanup( window ) ;
140
	FCK.IECleanup.AddItem( FCKTempBin, FCKTempBin.Reset ) ;
246
	FCK.IECleanup.AddItem( FCKTempBin, FCKTempBin.Reset ) ;
141
	FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ;
247
	FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ;
142
}
248
}
-
 
249
 
-
 
250
// The first function to be called on selection change must the the styles
-
 
251
// change checker, because the result of its processing may be used by another
-
 
252
// functions listening to the same event.
-
 
253
FCK.Events.AttachEvent( 'OnSelectionChange', function() { FCKStyles.CheckSelectionChanges() ; } ) ;
143
 
254
 
144
// The config hidden field is processed immediately, because
255
// The config hidden field is processed immediately, because
145
// CustomConfigurationsPath may be set in the page.
256
// CustomConfigurationsPath may be set in the page.
146
FCKConfig.ProcessHiddenField() ;
257
FCKConfig.ProcessHiddenField() ;
147
 
258
 
148
// Load the custom configurations file (if defined).
259
// Load the custom configurations file (if defined).
149
if ( FCKConfig.CustomConfigurationsPath.length > 0 )
260
if ( FCKConfig.CustomConfigurationsPath.length > 0 )
150
	LoadScript( FCKConfig.CustomConfigurationsPath ) ;
261
	LoadScript( FCKConfig.CustomConfigurationsPath ) ;
151
 
262
 
152
	</script>
263
	</script>
153
	<script type="text/javascript">
264
	<script type="text/javascript">
154
 
265
 
155
// Load configurations defined at page level.
266
// Load configurations defined at page level.
156
FCKConfig_LoadPageConfig() ;
267
FCKConfig_LoadPageConfig() ;
157
 
268
 
158
FCKConfig_PreProcess() ;
269
FCKConfig_PreProcess() ;
-
 
270
 
-
 
271
// Load the full debug script.
-
 
272
if ( FCKConfig.Debug )
-
 
273
	LoadScript( '_source/internals/fckdebug.js' ) ;
-
 
274
 
-
 
275
	</script>
-
 
276
	<script type="text/javascript">
-
 
277
 
-
 
278
var FCK_InternalCSS			= FCKConfig.BasePath + 'css/fck_internal.css' ;					// @Packager.RemoveLine
-
 
279
var FCK_ShowTableBordersCSS	= FCKConfig.BasePath + 'css/fck_showtableborders_gecko.css' ;	// @Packager.RemoveLine
-
 
280
/* @Packager.RemoveLine
-
 
281
// CSS minified by http://iceyboard.no-ip.org/projects/css_compressor (see _dev/css_compression.txt).
-
 
282
var FCK_InternalCSS			= FCKTools.FixCssUrls( FCKConfig.BasePath + 'css/', 'html{min-height:100%}table.FCK__ShowTableBorders,table.FCK__ShowTableBorders td,table.FCK__ShowTableBorders th{border:#d3d3d3 1px solid}form{border:1px dotted #F00;padding:2px}.FCK__Flash{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_flashlogo.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__UnknownObject{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_plugin.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__Anchor{border:1px dotted #00F;background-position:center center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;width:16px;height:15px;vertical-align:middle}.FCK__AnchorC{border:1px dotted #00F;background-position:1px center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}a[name]{border:1px dotted #00F;background-position:0 center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}.FCK__PageBreak{background-position:center center;background-image:url(images/fck_pagebreak.gif);background-repeat:no-repeat;clear:both;display:block;float:none;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;border-right:0;border-left:0;height:5px}.FCK__InputHidden{width:19px;height:18px;background-image:url(images/fck_hiddenfield.gif);background-repeat:no-repeat;vertical-align:text-bottom;background-position:center center}.FCK__ShowBlocks p,.FCK__ShowBlocks div,.FCK__ShowBlocks pre,.FCK__ShowBlocks address,.FCK__ShowBlocks blockquote,.FCK__ShowBlocks h1,.FCK__ShowBlocks h2,.FCK__ShowBlocks h3,.FCK__ShowBlocks h4,.FCK__ShowBlocks h5,.FCK__ShowBlocks h6{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px;padding-left:8px}.FCK__ShowBlocks p{background-image:url(images/block_p.png)}.FCK__ShowBlocks div{background-image:url(images/block_div.png)}.FCK__ShowBlocks pre{background-image:url(images/block_pre.png)}.FCK__ShowBlocks address{background-image:url(images/block_address.png)}.FCK__ShowBlocks blockquote{background-image:url(images/block_blockquote.png)}.FCK__ShowBlocks h1{background-image:url(images/block_h1.png)}.FCK__ShowBlocks h2{background-image:url(images/block_h2.png)}.FCK__ShowBlocks h3{background-image:url(images/block_h3.png)}.FCK__ShowBlocks h4{background-image:url(images/block_h4.png)}.FCK__ShowBlocks h5{background-image:url(images/block_h5.png)}.FCK__ShowBlocks h6{background-image:url(images/block_h6.png)}' ) ;
-
 
283
var FCK_ShowTableBordersCSS	= FCKTools.FixCssUrls( FCKConfig.BasePath + 'css/', 'table:not([border]),table:not([border]) > tr > td,table:not([border]) > tr > th,table:not([border]) > tbody > tr > td,table:not([border]) > tbody > tr > th,table:not([border]) > thead > tr > td,table:not([border]) > thead > tr > th,table:not([border]) > tfoot > tr > td,table:not([border]) > tfoot > tr > th,table[border=\"0\"],table[border=\"0\"] > tr > td,table[border=\"0\"] > tr > th,table[border=\"0\"] > tbody > tr > td,table[border=\"0\"] > tbody > tr > th,table[border=\"0\"] > thead > tr > td,table[border=\"0\"] > thead > tr > th,table[border=\"0\"] > tfoot > tr > td,table[border=\"0\"] > tfoot > tr > th{border:#d3d3d3 1px dotted}' ) ;
-
 
284
@Packager.RemoveLine */
-
 
285
 
-
 
286
// Popup the debug window if debug mode is set to true. It guarantees that the
-
 
287
// first debug message will not be lost.
-
 
288
if ( FCKConfig.Debug )
-
 
289
	FCKDebug._GetWindow() ;
159
 
290
 
160
// Load the active skin CSS.
291
// Load the active skin CSS.
161
LoadCss( FCKConfig.SkinPath + 'fck_editor.css' ) ;
292
document.write( FCKTools.GetStyleHtml( FCKConfig.SkinEditorCSS ) ) ;
162
 
293
 
163
// Load the language file.
294
// Load the language file.
164
FCKLanguageManager.Initialize() ;
295
FCKLanguageManager.Initialize() ;
165
LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;
296
LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;
166
 
297
 
167
	</script>
298
	</script>
168
	<script type="text/javascript">
299
	<script type="text/javascript">
169
 
300
 
170
// Initialize the editing area context menu.
301
// Initialize the editing area context menu.
171
FCK_ContextMenu_Init() ;
302
FCK_ContextMenu_Init() ;
172
 
303
 
173
FCKPlugins.Load() ;
304
FCKPlugins.Load() ;
174
 
305
 
175
	</script>
306
	</script>
176
	<script type="text/javascript">
307
	<script type="text/javascript">
177
	
308
 
178
// Set the editor interface direction.
309
// Set the editor interface direction.
179
window.document.dir = FCKLang.Dir ;
310
window.document.dir = FCKLang.Dir ;
180
 
-
 
181
// Activate pasting operations.
-
 
182
if ( FCKConfig.ForcePasteAsPlainText || FCKConfig.AutoDetectPasteFromWord )
-
 
183
	FCK.Events.AttachEvent( "OnPaste", FCK.Paste ) ;
-
 
184
 
311
 
185
	</script>
312
	</script>
186
	<script type="text/javascript">
313
	<script type="text/javascript">
187
 
314
 
188
window.onload = function()
315
window.onload = function()
189
{
316
{
190
	InitializeAPI() ;
317
	InitializeAPI() ;
191
 
318
 
192
	if ( FCKBrowserInfo.IsIE )
319
	if ( FCKBrowserInfo.IsIE )
193
		FCK_PreloadImages() ;
320
		FCK_PreloadImages() ;
194
	else
321
	else
195
		LoadToolbarSetup() ;
322
		LoadToolbarSetup() ;
196
}
323
}
197
 
324
 
198
function LoadToolbarSetup()
325
function LoadToolbarSetup()
199
{
326
{
200
	FCKeditorAPI._FunctionQueue.Add( LoadToolbar ) ;
327
	FCKeditorAPI._FunctionQueue.Add( LoadToolbar ) ;
201
}
328
}
202
 
329
 
203
function LoadToolbar()
330
function LoadToolbar()
204
{
331
{
205
	var oToolbarSet = FCK.ToolbarSet = FCKToolbarSet_Create() ;
332
	var oToolbarSet = FCK.ToolbarSet = FCKToolbarSet_Create() ;
206
	
333
 
207
	if ( oToolbarSet.IsLoaded )
334
	if ( oToolbarSet.IsLoaded )
208
		StartEditor() ;
335
		StartEditor() ;
209
	else
336
	else
210
	{
337
	{
211
		oToolbarSet.OnLoad = StartEditor ;
338
		oToolbarSet.OnLoad = StartEditor ;
212
		oToolbarSet.Load( FCKURLParams['Toolbar'] || 'Default' ) ;
339
		oToolbarSet.Load( FCKURLParams['Toolbar'] || 'Default' ) ;
213
	}
340
	}
214
}
341
}
215
 
342
 
216
function StartEditor()
343
function StartEditor()
217
{
344
{
218
	// Remove the onload listener.
345
	// Remove the onload listener.
219
	FCK.ToolbarSet.OnLoad = null ;
346
	FCK.ToolbarSet.OnLoad = null ;
220
 
347
 
221
	FCKeditorAPI._FunctionQueue.Remove( LoadToolbar ) ;
348
	FCKeditorAPI._FunctionQueue.Remove( LoadToolbar ) ;
222
 
349
 
223
	FCK.Events.AttachEvent( 'OnStatusChange', WaitForActive ) ;
350
	FCK.Events.AttachEvent( 'OnStatusChange', WaitForActive ) ;
224
 
351
 
225
	// Start the editor.
352
	// Start the editor.
226
	FCK.StartEditor() ;
353
	FCK.StartEditor() ;
227
}
354
}
228
 
355
 
229
function WaitForActive( editorInstance, newStatus )
356
function WaitForActive( editorInstance, newStatus )
230
{
357
{
231
	if ( newStatus == FCK_STATUS_ACTIVE )
358
	if ( newStatus == FCK_STATUS_ACTIVE )
232
	{
359
	{
233
		if ( FCKBrowserInfo.IsGecko )
360
		if ( FCKBrowserInfo.IsGecko )
234
			FCKTools.RunFunction( window.onresize ) ;
361
			FCKTools.RunFunction( window.onresize ) ;
-
 
362
 
-
 
363
		if ( !FCKConfig.PreventSubmitHandler )
-
 
364
			_AttachFormSubmitToAPI() ;
235
 
365
 
236
		FCK.SetStatus( FCK_STATUS_COMPLETE ) ;
366
		FCK.SetStatus( FCK_STATUS_COMPLETE ) ;
237
 
367
 
238
		// Call the special "FCKeditor_OnComplete" function that should be present in 
368
		// Call the special "FCKeditor_OnComplete" function that should be present in
239
		// the HTML page where the editor is located.
369
		// the HTML page where the editor is located.
240
		if ( typeof( window.parent.FCKeditor_OnComplete ) == 'function' )
370
		if ( typeof( window.parent.FCKeditor_OnComplete ) == 'function' )
241
			window.parent.FCKeditor_OnComplete( FCK ) ;	
371
			window.parent.FCKeditor_OnComplete( FCK ) ;
242
	}
372
	}
243
}
373
}
244
 
374
 
245
// Gecko browsers doens't calculate well that IFRAME size so we must
375
// Gecko browsers doesn't calculate well the IFRAME size so we must
246
// recalculate it every time the window size changes.
376
// recalculate it every time the window size changes.
247
if ( FCKBrowserInfo.IsGecko )
377
if ( FCKBrowserInfo.IsGecko && !FCKBrowserInfo.IsOpera )
248
{
378
{
249
	function Window_OnResize()
379
	window.onresize = function( e )
-
 
380
	{
250
	{
381
		// Running in Chrome makes the window receive the event including subframes.
-
 
382
		// we care only about this window. Ticket #1642.
-
 
383
		// #2002: The originalTarget from the event can be the current document, the window, or the editing area.
251
		if ( FCKBrowserInfo.IsOpera )
384
		if ( e && e.originalTarget !== document && e.originalTarget !== window && (!e.originalTarget.ownerDocument || e.originalTarget.ownerDocument != document ))
252
			return ;
385
			return ;
253
 
386
 
254
		var oCell = document.getElementById( 'xEditingArea' ) ;
387
		var oCell = document.getElementById( 'xEditingArea' ) ;
255
 
388
 
256
		var eInnerElement ;
389
		var eInnerElement = oCell.firstChild ;
257
		if ( eInnerElement = oCell.firstChild )
390
		if ( eInnerElement )
258
		{
391
		{
259
			eInnerElement.style.height = 0 ;
392
			eInnerElement.style.height = '0px' ;
260
			eInnerElement.style.height = oCell.scrollHeight - 2 ;
393
			eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;
261
		}
394
		}
262
	}
-
 
263
	window.onresize = Window_OnResize ;
395
	}
264
}
396
}
265
 
397
 
266
	</script>
398
	</script>
267
</head>
399
</head>
268
<body>
400
<body>
269
	<table width="100%" cellpadding="0" cellspacing="0" style="height: 100%; table-layout: fixed">
401
	<table width="100%" cellpadding="0" cellspacing="0" style="height: 100%; table-layout: fixed">
270
		<tr id="xToolbarRow" style="display: none">
402
		<tr id="xToolbarRow" style="display: none">
271
			<td id="xToolbarSpace" style="overflow: hidden">
403
			<td id="xToolbarSpace" style="overflow: hidden">
272
				<table width="100%" cellpadding="0" cellspacing="0">
404
				<table width="100%" cellpadding="0" cellspacing="0">
273
					<tr id="xCollapsed" style="display: none">
405
					<tr id="xCollapsed" style="display: none">
274
						<td id="xExpandHandle" class="TB_Expand" colspan="3">
406
						<td id="xExpandHandle" class="TB_Expand" colspan="3">
275
							<img class="TB_ExpandImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>
407
							<img class="TB_ExpandImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>
276
					</tr>
408
					</tr>
277
					<tr id="xExpanded" style="display: none">
409
					<tr id="xExpanded" style="display: none">
278
						<td id="xTBLeftBorder" class="TB_SideBorder" style="width: 1px; display: none;"></td>
410
						<td id="xTBLeftBorder" class="TB_SideBorder" style="width: 1px; display: none;"></td>
279
						<td id="xCollapseHandle" style="display: none" class="TB_Collapse" valign="bottom">
411
						<td id="xCollapseHandle" style="display: none" class="TB_Collapse" valign="bottom">
280
							<img class="TB_CollapseImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>
412
							<img class="TB_CollapseImg" alt="" src="images/spacer.gif" width="8" height="4" /></td>
281
						<td id="xToolbar" class="TB_ToolbarSet"></td>
413
						<td id="xToolbar" class="TB_ToolbarSet"></td>
282
						<td class="TB_SideBorder" style="width: 1px"></td>
414
						<td class="TB_SideBorder" style="width: 1px"></td>
283
					</tr>
415
					</tr>
284
				</table>
416
				</table>
285
			</td>
417
			</td>
286
		</tr>
418
		</tr>
287
		<tr style="height: 100%">
419
		<tr>
288
			<td id="xEditingArea" valign="top"></td>
420
			<td id="xEditingArea" valign="top" style="height: 100%"></td>
289
		</tr>
421
		</tr>
290
	</table>
422
	</table>
291
</body>
423
</body>
292
</html>
424
</html>