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: 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">
Line -... Line 33...
-
 
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
Line 33... Line 108...
33
// unwanted order (IE).
108
// unwanted order (IE).
34
 
109
 
35
function LoadScript( url )
110
function LoadScript( url )
36
{
-
 
37
	document.write( '<script type="text/javascript" src="' + url + '" onerror="alert(\'Error loading \' + this.src);"><\/script>' ) ;
-
 
38
}
-
 
39
 
-
 
40
function LoadCss( url )
-
 
41
{
111
{
Line 42... Line 112...
42
	document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" onerror="alert(\'Error loading \' + this.src);" />' ) ;
112
	document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ;
43
}
113
}
Line 44... Line 114...
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
 
Line 56... Line 126...
56
if ( sSuffix == 'ie' )
126
if ( sSuffix == 'ie' )
57
	LoadScript( '_source/classes/fckiecleanup.js' ) ;
127
	LoadScript( '_source/classes/fckiecleanup.js' ) ;
Line 58... Line 128...
58
 
128
 
59
LoadScript( '_source/internals/fckbrowserinfo.js' ) ;
129
LoadScript( '_source/internals/fckbrowserinfo.js' ) ;
-
 
130
LoadScript( '_source/internals/fckurlparams.js' ) ;
-
 
131
LoadScript( '_source/classes/fckevents.js' ) ;
60
LoadScript( '_source/internals/fckurlparams.js' ) ;
132
LoadScript( '_source/classes/fckdataprocessor.js' ) ;
-
 
133
LoadScript( '_source/internals/fck.js' ) ;
61
LoadScript( '_source/internals/fck.js' ) ;
134
LoadScript( '_source/internals/fck_' + sSuffix + '.js' ) ;
Line 62... Line 135...
62
LoadScript( '_source/internals/fckconfig.js' ) ;
135
LoadScript( '_source/internals/fckconfig.js' ) ;
-
 
136
 
63
 
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' ) ;
-
 
140
LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ;
66
LoadScript( '_source/internals/fcktools_' + sSuffix + '.js' ) ;
141
LoadScript( '_source/fckeditorapi.js' ) ;
-
 
142
LoadScript( '_source/classes/fckimagepreloader.js' ) ;
67
LoadScript( '_source/fckeditorapi.js' ) ;
143
LoadScript( '_source/internals/fckregexlib.js' ) ;
68
LoadScript( '_source/internals/fckregexlib.js' ) ;
-
 
69
LoadScript( '_source/internals/fcklanguagemanager.js' ) ;
144
LoadScript( '_source/internals/fcklistslib.js' ) ;
70
LoadScript( '_source/classes/fckevents.js' ) ;
145
LoadScript( '_source/internals/fcklanguagemanager.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' ) ;
-
 
150
LoadScript( '_source/internals/fckundo.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' ) ;
75
LoadScript( '_source/internals/fckundo_' + sSuffix + '.js' ) ;
165
LoadScript( '_source/classes/fckenterkey.js' ) ;
76
LoadScript( '_source/classes/fckeditingarea.js' ) ;
-
 
77
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' ) ;
166
 
81
LoadScript( '_source/internals/fck_2_' + sSuffix + '.js' ) ;
167
LoadScript( '_source/internals/fckdocumentprocessor.js' ) ;
Line 82... Line 168...
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' ) ;
-
 
170
 
84
 
171
LoadScript( '_source/internals/fcktablehandler.js' ) ;
85
LoadScript( '_source/internals/fcktablehandler.js' ) ;
-
 
86
LoadScript( '_source/internals/fcktablehandler_' + sSuffix + '.js' ) ;
-
 
87
LoadScript( '_source/classes/fckxml_' + sSuffix + '.js' ) ;
-
 
Line 88... Line 172...
88
LoadScript( '_source/classes/fckstyledef.js' ) ;
172
LoadScript( '_source/internals/fcktablehandler_' + sSuffix + '.js' ) ;
-
 
173
LoadScript( '_source/classes/fckxml.js' ) ;
89
LoadScript( '_source/classes/fckstyledef_' + sSuffix + '.js' ) ;
174
LoadScript( '_source/classes/fckxml_' + sSuffix + '.js' ) ;
-
 
175
 
90
LoadScript( '_source/classes/fckstylesloader.js' ) ;
176
LoadScript( '_source/commandclasses/fcknamedcommand.js' ) ;
91
 
177
LoadScript( '_source/commandclasses/fckstylecommand.js' ) ;
92
LoadScript( '_source/commandclasses/fcknamedcommand.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' ) ;
-
 
96
LoadScript( '_source/commandclasses/fckpasteplaintextcommand.js' ) ;
181
LoadScript( '_source/commandclasses/fcktextcolorcommand.js' ) ;
-
 
182
LoadScript( '_source/commandclasses/fckpasteplaintextcommand.js' ) ;
-
 
183
LoadScript( '_source/commandclasses/fckpastewordcommand.js' ) ;
-
 
184
LoadScript( '_source/commandclasses/fcktablecommand.js' ) ;
-
 
185
LoadScript( '_source/commandclasses/fckfitwindow.js' ) ;
-
 
186
LoadScript( '_source/commandclasses/fcklistcommands.js' ) ;
-
 
187
LoadScript( '_source/commandclasses/fckjustifycommands.js' ) ;
97
LoadScript( '_source/commandclasses/fckpastewordcommand.js' ) ;
188
LoadScript( '_source/commandclasses/fckindentcommands.js' ) ;
Line 98... Line 189...
98
LoadScript( '_source/commandclasses/fcktablecommand.js' ) ;
189
LoadScript( '_source/commandclasses/fckblockquotecommand.js' ) ;
99
LoadScript( '_source/commandclasses/fckstylecommand.js' ) ;
190
LoadScript( '_source/commandclasses/fckcorestylecommand.js' ) ;
100
LoadScript( '_source/commandclasses/fckfitwindow.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' ) ;
-
 
195
LoadScript( '_source/classes/fckicon.js' ) ;
-
 
196
LoadScript( '_source/classes/fcktoolbarbuttonui.js' ) ;
104
LoadScript( '_source/classes/fckicon.js' ) ;
197
LoadScript( '_source/classes/fcktoolbarbutton.js' ) ;
105
LoadScript( '_source/classes/fcktoolbarbuttonui.js' ) ;
198
LoadScript( '_source/classes/fckspecialcombo.js' ) ;
106
LoadScript( '_source/classes/fcktoolbarbutton.js' ) ;
-
 
107
LoadScript( '_source/classes/fckspecialcombo.js' ) ;
-
 
108
LoadScript( '_source/classes/fcktoolbarspecialcombo.js' ) ;
199
LoadScript( '_source/classes/fcktoolbarspecialcombo.js' ) ;
109
LoadScript( '_source/classes/fcktoolbarfontscombo.js' ) ;
200
LoadScript( '_source/classes/fcktoolbarstylecombo.js' ) ;
110
LoadScript( '_source/classes/fcktoolbarfontsizecombo.js' ) ;
201
LoadScript( '_source/classes/fcktoolbarfontformatcombo.js' ) ;
111
LoadScript( '_source/classes/fcktoolbarfontformatcombo.js' ) ;
202
LoadScript( '_source/classes/fcktoolbarfontscombo.js' ) ;
112
LoadScript( '_source/classes/fcktoolbarstylecombo.js' ) ;
203
LoadScript( '_source/classes/fcktoolbarfontsizecombo.js' ) ;
113
LoadScript( '_source/classes/fcktoolbarpanelbutton.js' ) ;
204
LoadScript( '_source/classes/fcktoolbarpanelbutton.js' ) ;
114
LoadScript( '_source/internals/fcktoolbaritems.js' ) ;
-
 
115
LoadScript( '_source/classes/fcktoolbar.js' ) ;
205
LoadScript( '_source/internals/fcktoolbaritems.js' ) ;
116
LoadScript( '_source/classes/fcktoolbarbreak_' + sSuffix + '.js' ) ;
206
LoadScript( '_source/classes/fcktoolbar.js' ) ;
117
LoadScript( '_source/internals/fcktoolbarset.js' ) ;
207
LoadScript( '_source/classes/fcktoolbarbreak_' + sSuffix + '.js' ) ;
118
LoadScript( '_source/internals/fckdialog.js' ) ;
208
LoadScript( '_source/internals/fcktoolbarset.js' ) ;
119
LoadScript( '_source/internals/fckdialog_' + sSuffix + '.js' ) ;
209
LoadScript( '_source/internals/fckdialog.js' ) ;
-
 
210
LoadScript( '_source/classes/fckmenuitem.js' ) ;
120
LoadScript( '_source/classes/fckmenuitem.js' ) ;
211
LoadScript( '_source/classes/fckmenublock.js' ) ;
121
LoadScript( '_source/classes/fckmenublock.js' ) ;
212
LoadScript( '_source/classes/fckmenublockpanel.js' ) ;
Line 122... Line 213...
122
LoadScript( '_source/classes/fckmenublockpanel.js' ) ;
213
LoadScript( '_source/classes/fckcontextmenu.js' ) ;
Line 131... Line 222...
131
LoadScript( '../fckconfig.js' ) ;
222
LoadScript( '../fckconfig.js' ) ;
Line 132... Line 223...
132
 
223
 
133
	</script>
224
	</script>
Line 134... Line 225...
134
	<script type="text/javascript">
225
	<script type="text/javascript">
-
 
226
 
-
 
227
// Adobe AIR compatibility file.
-
 
228
if ( FCKBrowserInfo.IsAIR )
135
 
229
	LoadScript( 'js/fckadobeair.js' ) ;
136
// Create the default cleanup object used by the editor.
230
 
-
 
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
	}
137
if ( FCKBrowserInfo.IsIE )
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 ) ;
Line -... Line 247...
-
 
247
	FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ;
-
 
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
141
	FCK.IECleanup.AddItem( FCK, FCK_Cleanup ) ;
252
// functions listening to the same event.
142
}
253
FCK.Events.AttachEvent( 'OnSelectionChange', function() { FCKStyles.CheckSelectionChanges() ; } ) ;
143
 
254
 
Line 144... Line 255...
144
// The config hidden field is processed immediately, because
255
// The config hidden field is processed immediately, because
Line 155... Line 266...
155
// Load configurations defined at page level.
266
// Load configurations defined at page level.
156
FCKConfig_LoadPageConfig() ;
267
FCKConfig_LoadPageConfig() ;
Line 157... Line 268...
157
 
268
 
Line -... Line 269...
-
 
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 )
158
FCKConfig_PreProcess() ;
289
	FCKDebug._GetWindow() ;
159
 
290
 
Line 160... Line 291...
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
 
Line 172... Line 303...
172
 
303
 
Line 173... Line 304...
173
FCKPlugins.Load() ;
304
FCKPlugins.Load() ;
174
 
305
 
175
	</script>
306
	</script>
176
	<script type="text/javascript">
307
	<script type="text/javascript">
177
	
308
 
Line 178... Line -...
178
// Set the editor interface direction.
-
 
179
window.document.dir = FCKLang.Dir ;
-
 
180
 
-
 
181
// Activate pasting operations.
-
 
182
if ( FCKConfig.ForcePasteAsPlainText || FCKConfig.AutoDetectPasteFromWord )
309
// Set the editor interface direction.
183
	FCK.Events.AttachEvent( "OnPaste", FCK.Paste ) ;
310
window.document.dir = FCKLang.Dir ;
Line 184... Line 311...
184
 
311
 
185
	</script>
312
	</script>
Line 201... Line 328...
201
}
328
}
Line 202... Line 329...
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
	{
Line 231... Line 358...
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 ) ;
Line -... Line 362...
-
 
362
 
-
 
363
		if ( !FCKConfig.PreventSubmitHandler )
-
 
364
			_AttachFormSubmitToAPI() ;
235
 
365
 
Line 236... Line 366...
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 ) ;
Line 242... Line 372...
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 )
-
 
378
{
248
{
379
	window.onresize = function( e )
-
 
380
	{
-
 
381
		// Running in Chrome makes the window receive the event including subframes.
249
	function Window_OnResize()
382
		// we care only about this window. Ticket #1642.
Line 250... Line 383...
250
	{
383
		// #2002: The originalTarget from the event can be the current document, the window, or the editing area.
Line 251... Line 384...
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
		{
-
 
259
			eInnerElement.style.height = 0 ;
391
		{
Line 260... Line 392...
260
			eInnerElement.style.height = oCell.scrollHeight - 2 ;
392
			eInnerElement.style.height = '0px' ;
261
		}
393
			eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;
262
	}
394
		}
Line 282... Line 414...
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>