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 1922
1
/*
1
/*
2
 * FCKeditor - The text editor for internet
2
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
3
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
-
 
4
 *
-
 
5
 * == BEGIN LICENSE ==
4
 * 
6
 *
5
 * Licensed under the terms of the GNU Lesser General Public License:
7
 * Licensed under the terms of any of the following licenses at your
-
 
8
 * choice:
-
 
9
 *
-
 
10
 *  - GNU General Public License Version 2 or later (the "GPL")
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
11
 *    http://www.gnu.org/licenses/gpl.html
7
 * 
12
 *
-
 
13
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
8
 * For further information visit:
14
 *    http://www.gnu.org/licenses/lgpl.html
-
 
15
 *
-
 
16
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
9
 * 		http://www.fckeditor.net/
17
 *    http://www.mozilla.org/MPL/MPL-1.1.html
10
 * 
18
 *
11
 * File Name: fckconfig.js
19
 * == END LICENSE ==
-
 
20
 *
12
 * 	Editor configuration settings.
21
 * Editor configuration settings.
13
 * 	See the documentation for more info.
-
 
14
 * 
22
 *
15
 * File Authors:
23
 * Follow this link for more information:
16
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
24
 * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
17
 */
25
 */
18
 
26
 
19
FCKConfig.CustomConfigurationsPath = '' ;
27
FCKConfig.CustomConfigurationsPath = '' ;
20
 
28
 
21
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
29
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
-
 
30
FCKConfig.EditorAreaStyles = '' ;
-
 
31
FCKConfig.ToolbarComboPreviewCSS = '' ;
22
 
32
 
23
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
33
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
24
 
34
 
25
FCKConfig.BaseHref = '' ;
35
FCKConfig.BaseHref = '' ;
26
 
36
 
27
FCKConfig.FullPage = false ;
37
FCKConfig.FullPage = false ;
-
 
38
 
-
 
39
// The following option determines whether the "Show Blocks" feature is enabled or not at startup.
-
 
40
FCKConfig.StartupShowBlocks = false ;
28
 
41
 
-
 
42
FCKConfig.Debug = false ;
29
FCKConfig.Debug = false ;
43
FCKConfig.AllowQueryStringDebug = true ;
-
 
44
 
-
 
45
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
-
 
46
FCKConfig.SkinEditorCSS = '' ;	// FCKConfig.SkinPath + "|<minified css>" ;
-
 
47
FCKConfig.SkinDialogCSS = '' ;	// FCKConfig.SkinPath + "|<minified css>" ;
30
 
48
 
31
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
49
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;
32
 
50
 
33
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
51
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
-
 
52
 
34
 
53
// FCKConfig.Plugins.Add( 'autogrow' ) ;
-
 
54
// FCKConfig.Plugins.Add( 'dragresizetable' );
-
 
55
FCKConfig.AutoGrowMax = 400 ;
-
 
56
 
-
 
57
// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
-
 
58
// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
35
// FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
59
// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
36
 
60
 
37
FCKConfig.AutoDetectLanguage	= true ;
61
FCKConfig.AutoDetectLanguage	= true ;
38
FCKConfig.DefaultLanguage		= 'fr' ;
62
FCKConfig.DefaultLanguage		= 'fr' ;
39
FCKConfig.ContentLangDirection	= 'ltr' ;
63
FCKConfig.ContentLangDirection	= 'ltr' ;
40
 
64
 
-
 
65
FCKConfig.ProcessHTMLEntities	= true ;
41
FCKConfig.EnableXHTML		= true ;	// Unsupported: Do not change.
66
FCKConfig.IncludeLatinEntities	= true ;
-
 
67
FCKConfig.IncludeGreekEntities	= true ;
-
 
68
 
42
FCKConfig.EnableSourceXHTML	= true ;	// Unsupported: Do not change.
-
 
43
 
-
 
44
FCKConfig.ProcessHTMLEntities	= false ;
69
FCKConfig.ProcessNumericEntities = false ;
45
FCKConfig.IncludeLatinEntities	= false ;
70
 
46
FCKConfig.IncludeGreekEntities	= false ;
71
FCKConfig.AdditionalNumericEntities = ''  ;		// Single Quote: "'"
47
 
72
 
48
FCKConfig.FillEmptyBlocks	= true ;
73
FCKConfig.FillEmptyBlocks	= true ;
49
 
74
 
50
FCKConfig.FormatSource		= true ;
75
FCKConfig.FormatSource		= true ;
51
FCKConfig.FormatOutput		= true ;
76
FCKConfig.FormatOutput		= true ;
52
FCKConfig.FormatIndentator	= '\t' ;
77
FCKConfig.FormatIndentator	= '    ' ;
-
 
78
 
-
 
79
FCKConfig.EMailProtection = 'encode' ; // none | encode | function
-
 
80
FCKConfig.EMailProtectionFunction = 'mt(NAME,DOMAIN,SUBJECT,BODY)' ;
53
 
-
 
54
FCKConfig.GeckoUseSPAN	= true ;
81
 
55
FCKConfig.StartupFocus	= false ;
82
FCKConfig.StartupFocus	= false ;
-
 
83
FCKConfig.ForcePasteAsPlainText	= false ;
-
 
84
FCKConfig.AutoDetectPasteFromWord = true ;	// IE only.
56
FCKConfig.ForcePasteAsPlainText	= false ;
85
FCKConfig.ShowDropDialog = true ;
57
FCKConfig.ForceSimpleAmpersand	= false ;
86
FCKConfig.ForceSimpleAmpersand	= false ;
58
FCKConfig.TabSpaces		= 0 ;
87
FCKConfig.TabSpaces		= 0 ;
59
FCKConfig.ShowBorders	= true ;
88
FCKConfig.ShowBorders	= true ;
60
FCKConfig.UseBROnCarriageReturn	= false ;
89
FCKConfig.SourcePopup	= false ;
61
FCKConfig.ToolbarStartExpanded	= true ;
90
FCKConfig.ToolbarStartExpanded	= true ;
62
FCKConfig.ToolbarCanCollapse	= true ;
91
FCKConfig.ToolbarCanCollapse	= true ;
63
FCKConfig.IEForceVScroll = false ;
-
 
64
FCKConfig.IgnoreEmptyParagraphValue = true ;
92
FCKConfig.IgnoreEmptyParagraphValue = true ;
-
 
93
FCKConfig.FloatingPanelsZIndex = 10000 ;
-
 
94
FCKConfig.HtmlEncodeOutput = false ;
-
 
95
 
-
 
96
FCKConfig.TemplateReplaceAll = true ;
-
 
97
FCKConfig.TemplateReplaceCheckbox = true ;
-
 
98
 
-
 
99
FCKConfig.ToolbarLocation = 'In' ;
65
 
100
 
66
FCKConfig.ToolbarSets["Default"] = [
101
FCKConfig.ToolbarSets["Default"] = [
67
	['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
102
	['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
68
	['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
103
	['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
69
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
104
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
-
 
105
	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
-
 
106
	'/',
70
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
107
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
71
	['OrderedList','UnorderedList','-','Outdent','Indent'],
108
	['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
72
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
109
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
73
	['Link','Unlink','Anchor'],
110
	['Link','Unlink','Anchor'],
74
	['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey'],
111
	['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
75
	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
-
 
76
	'/',
112
	'/',
77
	['Style','FontFormat','FontName','FontSize'],
113
	['Style','FontFormat','FontName','FontSize'],
78
	['TextColor','BGColor'],
114
	['TextColor','BGColor'],
79
	['About']
115
	['FitWindow','ShowBlocks','-','About']		// No comma for the last row.
80
] ;
116
] ;
81
 
117
 
82
FCKConfig.ToolbarSets["Basic"] = [
118
FCKConfig.ToolbarSets["Basic"] = [
83
	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
119
	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
84
] ;
120
] ;
-
 
121
 
85
FCKConfig.ToolbarSets["Papyrus"] = [
122
FCKConfig.ToolbarSets["Papyrus"] = [
86
  ['Source','Preview','-','Cut','Copy','Paste','PasteText','PasteWord','SelectAll','-','Undo','Redo','Find','Replace'],
123
  ['FitWindow','ShowBlocks','Source','Preview','-','Cut','Copy','Paste','PasteText','PasteWord','SelectAll','-','Undo','Redo','Find','Replace'],
87
  ['RemoveFormat','Bold','Italic','Underline','StrikeThrough','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList'],
124
  ['RemoveFormat','Bold','Italic','Underline','StrikeThrough','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList'],
88
  '/',
125
  '/',
89
  ['Image','Table','Link','Unlink','Rule','SpecialChar','UniversalKey'],
126
  ['Image','Table','Link','Unlink','Rule','SpecialChar'],
90
  ['FontFormat','FontName','FontSize','TextColor'],
127
  ['FontFormat','FontName','FontSize',],
-
 
128
  ['TextColor','BGColor'],
91
  ['About']
129
  ['About']
92
] ;
130
] ;
-
 
131
 
-
 
132
FCKConfig.EnterMode = 'p' ;			// p | div | br
-
 
133
FCKConfig.ShiftEnterMode = 'br' ;	// p | div | br
-
 
134
 
-
 
135
FCKConfig.Keystrokes = [
-
 
136
	[ CTRL + 65 /*A*/, true ],
-
 
137
	[ CTRL + 67 /*C*/, true ],
-
 
138
	[ CTRL + 70 /*F*/, true ],
-
 
139
	[ CTRL + 83 /*S*/, true ],
-
 
140
	[ CTRL + 84 /*T*/, true ],
-
 
141
	[ CTRL + 88 /*X*/, true ],
-
 
142
	[ CTRL + 86 /*V*/, 'Paste' ],
-
 
143
	[ CTRL + 45 /*INS*/, true ],
-
 
144
	[ SHIFT + 45 /*INS*/, 'Paste' ],
-
 
145
	[ CTRL + 88 /*X*/, 'Cut' ],
-
 
146
	[ SHIFT + 46 /*DEL*/, 'Cut' ],
-
 
147
	[ CTRL + 90 /*Z*/, 'Undo' ],
-
 
148
	[ CTRL + 89 /*Y*/, 'Redo' ],
-
 
149
	[ CTRL + SHIFT + 90 /*Z*/, 'Redo' ],
-
 
150
	[ CTRL + 76 /*L*/, 'Link' ],
-
 
151
	[ CTRL + 66 /*B*/, 'Bold' ],
-
 
152
	[ CTRL + 73 /*I*/, 'Italic' ],
-
 
153
	[ CTRL + 85 /*U*/, 'Underline' ],
-
 
154
	[ CTRL + SHIFT + 83 /*S*/, 'Save' ],
-
 
155
	[ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ],
-
 
156
	[ SHIFT + 32 /*SPACE*/, 'Nbsp' ]
-
 
157
] ;
93
 
158
 
-
 
159
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ;
-
 
160
FCKConfig.BrowserContextMenuOnCtrl = false ;
-
 
161
FCKConfig.BrowserContextMenu = false ;
94
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
162
 
-
 
163
FCKConfig.EnableMoreFontColors = true ;
95
 
164
FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ;
96
FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ;
165
 
97
 
-
 
98
FCKConfig.FontNames		= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
166
FCKConfig.FontFormats	= 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ;
99
FCKConfig.FontSizes		= '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
167
FCKConfig.FontNames		= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
100
FCKConfig.FontFormats	= 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
168
FCKConfig.FontSizes		= 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
101
 
169
 
102
FCKConfig.StylesXmlPath		= FCKConfig.EditorPath + 'fckstyles.xml' ;
170
FCKConfig.StylesXmlPath		= FCKConfig.EditorPath + 'fckstyles.xml' ;
103
FCKConfig.TemplatesXmlPath	= FCKConfig.EditorPath + 'fcktemplates.xml' ;
171
FCKConfig.TemplatesXmlPath	= FCKConfig.EditorPath + 'fcktemplates.xml' ;
104
 
172
 
105
FCKConfig.SpellChecker			= 'ieSpell' ;	// 'ieSpell' | 'SpellerPages'
173
FCKConfig.SpellChecker			= 'ieSpell' ;	// 'ieSpell' | 'SpellerPages'
106
FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
174
FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
-
 
175
FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
-
 
176
FCKConfig.FirefoxSpellChecker	= false ;
107
 
177
 
108
FCKConfig.MaxUndoLevels = 15 ;
178
FCKConfig.MaxUndoLevels = 15 ;
109
 
179
 
110
FCKConfig.DisableImageHandles = false ;
180
FCKConfig.DisableObjectResizing = false ;
111
FCKConfig.DisableTableHandles = false ;
181
FCKConfig.DisableFFTableHandles = true ;
112
 
182
 
113
FCKConfig.LinkDlgHideTarget		= false ;
183
FCKConfig.LinkDlgHideTarget		= false ;
114
FCKConfig.LinkDlgHideAdvanced	= false ;
184
FCKConfig.LinkDlgHideAdvanced	= false ;
115
 
185
 
116
FCKConfig.ImageDlgHideLink		= false ;
186
FCKConfig.ImageDlgHideLink		= false ;
117
FCKConfig.ImageDlgHideAdvanced	= false ;
187
FCKConfig.ImageDlgHideAdvanced	= false ;
118
 
188
 
119
FCKConfig.FlashDlgHideAdvanced	= false ;
189
FCKConfig.FlashDlgHideAdvanced	= false ;
-
 
190
 
-
 
191
FCKConfig.ProtectedTags = '' ;
-
 
192
 
-
 
193
// This will be applied to the body element of the editor
-
 
194
FCKConfig.BodyId = '' ;
-
 
195
FCKConfig.BodyClass = '' ;
-
 
196
 
-
 
197
FCKConfig.DefaultStyleLabel = '' ;
-
 
198
FCKConfig.DefaultFontFormatLabel = '' ;
-
 
199
FCKConfig.DefaultFontLabel = '' ;
-
 
200
FCKConfig.DefaultFontSizeLabel = '' ;
-
 
201
 
-
 
202
FCKConfig.DefaultLinkTarget = '' ;
-
 
203
 
-
 
204
// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word
-
 
205
FCKConfig.CleanWordKeepsStructure = false ;
-
 
206
 
-
 
207
// Only inline elements are valid.
-
 
208
FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ;
-
 
209
 
-
 
210
// Attributes that will be removed
-
 
211
FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,hspace,valign' ;
-
 
212
 
-
 
213
FCKConfig.CustomStyles =
-
 
214
{
-
 
215
	'Red Title'	: { Element : 'h3', Styles : { 'color' : 'Red' } }
-
 
216
};
-
 
217
 
-
 
218
// Do not add, rename or remove styles here. Only apply definition changes.
-
 
219
FCKConfig.CoreStyles =
-
 
220
{
-
 
221
	// Basic Inline Styles.
-
 
222
	'Bold'			: { Element : 'strong', Overrides : 'b' },
-
 
223
	'Italic'		: { Element : 'em', Overrides : 'i' },
-
 
224
	'Underline'		: { Element : 'u' },
-
 
225
	'StrikeThrough'	: { Element : 'strike' },
-
 
226
	'Subscript'		: { Element : 'sub' },
-
 
227
	'Superscript'	: { Element : 'sup' },
-
 
228
 
-
 
229
	// Basic Block Styles (Font Format Combo).
-
 
230
	'p'				: { Element : 'p' },
-
 
231
	'div'			: { Element : 'div' },
-
 
232
	'pre'			: { Element : 'pre' },
-
 
233
	'address'		: { Element : 'address' },
-
 
234
	'h1'			: { Element : 'h1' },
-
 
235
	'h2'			: { Element : 'h2' },
-
 
236
	'h3'			: { Element : 'h3' },
-
 
237
	'h4'			: { Element : 'h4' },
-
 
238
	'h5'			: { Element : 'h5' },
-
 
239
	'h6'			: { Element : 'h6' },
-
 
240
 
-
 
241
	// Other formatting features.
-
 
242
	'FontFace' :
-
 
243
	{
-
 
244
		Element		: 'span',
-
 
245
		Styles		: { 'font-family' : '#("Font")' },
-
 
246
		Overrides	: [ { Element : 'font', Attributes : { 'face' : null } } ]
-
 
247
	},
-
 
248
 
-
 
249
	'Size' :
-
 
250
	{
-
 
251
		Element		: 'span',
-
 
252
		Styles		: { 'font-size' : '#("Size","fontSize")' },
-
 
253
		Overrides	: [ { Element : 'font', Attributes : { 'size' : null } } ]
-
 
254
	},
-
 
255
 
-
 
256
	'Color' :
-
 
257
	{
-
 
258
		Element		: 'span',
-
 
259
		Styles		: { 'color' : '#("Color","color")' },
-
 
260
		Overrides	: [ { Element : 'font', Attributes : { 'color' : null } } ]
-
 
261
	},
-
 
262
 
-
 
263
	'BackColor'		: { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } },
-
 
264
 
-
 
265
	'SelectionHighlight' : { Element : 'span', Styles : { 'background-color' : 'navy', 'color' : 'white' } }
-
 
266
};
-
 
267
 
-
 
268
// The distance of an indentation step.
-
 
269
FCKConfig.IndentLength = 40 ;
-
 
270
FCKConfig.IndentUnit = 'px' ;
-
 
271
 
-
 
272
// Alternatively, FCKeditor allows the use of CSS classes for block indentation.
-
 
273
// This overrides the IndentLength/IndentUnit settings.
-
 
274
FCKConfig.IndentClasses = [] ;
-
 
275
 
-
 
276
// [ Left, Center, Right, Justified ]
-
 
277
FCKConfig.JustifyClasses = [] ;
-
 
278
 
-
 
279
// The following value defines which File Browser connector and Quick Upload
-
 
280
// "uploader" to use. It is valid for the default implementaion and it is here
-
 
281
// just to make this configuration file cleaner.
-
 
282
// It is not possible to change this value using an external file or even
-
 
283
// inline when creating the editor instance. In that cases you must set the
-
 
284
// values of LinkBrowserURL, ImageBrowserURL and so on.
-
 
285
// Custom implementations should just ignore it.
-
 
286
var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
-
 
287
var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
-
 
288
 
-
 
289
// Don't care about the following two lines. It just calculates the correct connector
-
 
290
// extension to use for the default File Browser (Perl uses "cgi").
-
 
291
var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
-
 
292
var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ;
120
 
293
 
121
FCKConfig.LinkBrowser = true ;
-
 
122
// PHP	// 
294
FCKConfig.LinkBrowser = true ;
123
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;
-
 
124
// PHP - mcpuk	
-
 
125
//FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ;
295
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
126
FCKConfig.LinkBrowserWindowWidth	= screen.width * 0.7 ;	// 70%
296
FCKConfig.LinkBrowserWindowWidth	= FCKConfig.ScreenWidth * 0.7 ;		// 70%
127
FCKConfig.LinkBrowserWindowHeight	= screen.height * 0.7 ;	// 70%
297
FCKConfig.LinkBrowserWindowHeight	= FCKConfig.ScreenHeight * 0.7 ;	// 70%
128
 
-
 
129
FCKConfig.ImageBrowser = true ;
298
 
130
// PHP	// 
-
 
131
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
-
 
132
// PHP - mcpuk	
299
FCKConfig.ImageBrowser = true ;
133
//FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
300
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
134
FCKConfig.ImageBrowserWindowWidth  = screen.width * 0.7 ;	// 70% ;
301
FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	// 70% ;
135
FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ;	// 70% ;
-
 
136
 
302
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	// 70% ;
137
FCKConfig.FlashBrowser = true ;
-
 
138
// PHP	// 
-
 
139
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php' ;
303
 
140
// PHP - mcpuk	
304
FCKConfig.FlashBrowser = true ;
141
// FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Flash&Connector=connectors/php/connector.php' ;
305
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
142
FCKConfig.FlashBrowserWindowWidth  = screen.width * 0.7 ;	//70% ;
-
 
143
FCKConfig.FlashBrowserWindowHeight = screen.height * 0.7 ;	//70% ;
306
FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	//70% ;
144
 
307
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	//70% ;
145
FCKConfig.LinkUpload = true ;
308
 
146
// PHP // 
309
FCKConfig.LinkUpload = true ;
147
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php' ;
-
 
148
FCKConfig.LinkUploadAllowedExtensions	= "" ;			// empty for all
310
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension ;
149
FCKConfig.LinkUploadDeniedExtensions	= ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ;	// empty for no one
311
FCKConfig.LinkUploadAllowedExtensions	= ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ;			// empty for all
150
 
312
FCKConfig.LinkUploadDeniedExtensions	= "" ;	// empty for no one
151
FCKConfig.ImageUpload = true ;
313
 
152
// PHP // 
314
FCKConfig.ImageUpload = true ;
153
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Image' ;
315
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;
154
FCKConfig.ImageUploadAllowedExtensions	= ".(jpg|gif|jpeg|png)$" ;		// empty for all
316
FCKConfig.ImageUploadAllowedExtensions	= ".(jpg|gif|jpeg|png|bmp)$" ;		// empty for all
155
FCKConfig.ImageUploadDeniedExtensions	= "" ;							// empty for no one
317
FCKConfig.ImageUploadDeniedExtensions	= "" ;							// empty for no one
156
 
318
 
157
FCKConfig.FlashUpload = true ;
319
FCKConfig.FlashUpload = true ;
158
// PHP // 
-
 
159
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Flash' ;
320
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Flash' ;
160
FCKConfig.FlashUploadAllowedExtensions	= ".(swf|fla)$" ;		// empty for all
321
FCKConfig.FlashUploadAllowedExtensions	= ".(swf|flv)$" ;		// empty for all
161
FCKConfig.FlashUploadDeniedExtensions	= "" ;					// empty for no one
322
FCKConfig.FlashUploadDeniedExtensions	= "" ;					// empty for no one
162
 
323
 
163
FCKConfig.SmileyPath	= FCKConfig.BasePath + 'images/smiley/msn/' ;
324
FCKConfig.SmileyPath	= FCKConfig.BasePath + 'images/smiley/msn/' ;
164
FCKConfig.SmileyImages	= ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ;
325
FCKConfig.SmileyImages	= ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ;
165
FCKConfig.SmileyColumns = 8 ;
326
FCKConfig.SmileyColumns = 8 ;
166
FCKConfig.SmileyWindowWidth		= 320 ;
327
FCKConfig.SmileyWindowWidth		= 320 ;
167
FCKConfig.SmileyWindowHeight	= 240 ;
328
FCKConfig.SmileyWindowHeight	= 210 ;
-
 
329
 
-
 
330
FCKConfig.BackgroundBlockerColor = '#ffffff' ;
-
 
331
FCKConfig.BackgroundBlockerOpacity = 0.50 ;
-
 
332
 
-
 
333
FCKConfig.MsWebBrowserControlCompat = false ;
168
 
-
 
169
if( window.console ) window.console.log( 'Config is loaded!' ) ;	// @Packager.Compactor.RemoveLine
334
 
-
 
335
FCKConfig.PreventSubmitHandler = false ;