Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
431 ddelon 1
/*
2
 * FCKeditor - The text editor for internet
875 ddelon 3
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
431 ddelon 4
 *
5
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 *
8
 * For further information visit:
9
 * 		http://www.fckeditor.net/
10
 *
875 ddelon 11
 * "Support Open Source software. What about a donation today?"
12
 *
431 ddelon 13
 * File Name: fckconfig.js
14
 * 	Editor configuration settings.
15
 * 	See the documentation for more info.
16
 *
17
 * File Authors:
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
19
 */
20
 
21
FCKConfig.CustomConfigurationsPath = '' ;
22
 
23
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
24
 
875 ddelon 25
FCKConfig.DocType = '' ;
431 ddelon 26
 
27
FCKConfig.BaseHref = '' ;
28
 
29
FCKConfig.FullPage = false ;
30
 
31
FCKConfig.Debug = false ;
875 ddelon 32
FCKConfig.AllowQueryStringDebug = true ;
431 ddelon 33
 
34
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
875 ddelon 35
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;
431 ddelon 36
 
37
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
38
 
875 ddelon 39
// FCKConfig.Plugins.Add( 'autogrow' ) ;
40
FCKConfig.AutoGrowMax = 400 ;
431 ddelon 41
 
875 ddelon 42
FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ;	// <SCRIPT> tags.
43
// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
44
// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
45
// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
46
 
431 ddelon 47
FCKConfig.AutoDetectLanguage	= true ;
48
FCKConfig.DefaultLanguage		= 'en' ;
49
FCKConfig.ContentLangDirection	= 'ltr' ;
50
 
51
FCKConfig.ProcessHTMLEntities	= true ;
52
FCKConfig.IncludeLatinEntities	= true ;
53
FCKConfig.IncludeGreekEntities	= true ;
54
 
55
FCKConfig.FillEmptyBlocks	= true ;
56
 
57
FCKConfig.FormatSource		= true ;
58
FCKConfig.FormatOutput		= true ;
59
FCKConfig.FormatIndentator	= '    ' ;
60
 
875 ddelon 61
FCKConfig.ForceStrongEm = true ;
62
FCKConfig.GeckoUseSPAN	= false ;
431 ddelon 63
FCKConfig.StartupFocus	= false ;
64
FCKConfig.ForcePasteAsPlainText	= false ;
875 ddelon 65
FCKConfig.AutoDetectPasteFromWord = true ;	// IE only.
431 ddelon 66
FCKConfig.ForceSimpleAmpersand	= false ;
67
FCKConfig.TabSpaces		= 0 ;
68
FCKConfig.ShowBorders	= true ;
875 ddelon 69
FCKConfig.SourcePopup	= false ;
70
FCKConfig.UseBROnCarriageReturn	= false ;	// IE only.
431 ddelon 71
FCKConfig.ToolbarStartExpanded	= true ;
72
FCKConfig.ToolbarCanCollapse	= true ;
73
FCKConfig.IgnoreEmptyParagraphValue = true ;
875 ddelon 74
FCKConfig.PreserveSessionOnFileBrowser = false ;
75
FCKConfig.FloatingPanelsZIndex = 10000 ;
431 ddelon 76
 
875 ddelon 77
FCKConfig.ToolbarLocation = 'In' ;
78
 
431 ddelon 79
FCKConfig.ToolbarSets["Default"] = [
80
	['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
81
	['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
82
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
875 ddelon 83
	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
84
	'/',
431 ddelon 85
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
86
	['OrderedList','UnorderedList','-','Outdent','Indent'],
87
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
88
	['Link','Unlink','Anchor'],
875 ddelon 89
	['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'],
431 ddelon 90
	'/',
91
	['Style','FontFormat','FontName','FontSize'],
92
	['TextColor','BGColor'],
875 ddelon 93
	['FitWindow','-','About']
431 ddelon 94
] ;
95
 
96
FCKConfig.ToolbarSets["Basic"] = [
97
	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
98
] ;
99
 
875 ddelon 100
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
431 ddelon 101
 
102
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' ;
103
 
104
FCKConfig.FontNames		= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
105
FCKConfig.FontSizes		= '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
106
FCKConfig.FontFormats	= 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
107
 
108
FCKConfig.StylesXmlPath		= FCKConfig.EditorPath + 'fckstyles.xml' ;
109
FCKConfig.TemplatesXmlPath	= FCKConfig.EditorPath + 'fcktemplates.xml' ;
110
 
111
FCKConfig.SpellChecker			= 'ieSpell' ;	// 'ieSpell' | 'SpellerPages'
875 ddelon 112
FCKConfig.IeSpellDownloadUrl	= 'http://iespell.huhbw.com/ieSpellSetup220647.exe' ;
431 ddelon 113
 
114
FCKConfig.MaxUndoLevels = 15 ;
115
 
875 ddelon 116
FCKConfig.DisableObjectResizing = false ;
117
FCKConfig.DisableFFTableHandles = true ;
431 ddelon 118
 
119
FCKConfig.LinkDlgHideTarget		= false ;
120
FCKConfig.LinkDlgHideAdvanced	= false ;
121
 
122
FCKConfig.ImageDlgHideLink		= false ;
123
FCKConfig.ImageDlgHideAdvanced	= false ;
124
 
125
FCKConfig.FlashDlgHideAdvanced	= false ;
126
 
875 ddelon 127
// The following value defines which File Browser connector and Quick Upload
128
// "uploader" to use. It is valid for the default implementaion and it is here
129
// just to make this configuration file cleaner.
130
// It is not possible to change this value using an external file or even
131
// inline when creating the editor instance. In that cases you must set the
132
// values of LinkBrowserURL, ImageBrowserURL and so on.
133
// Custom implementations should just ignore it.
134
var _FileBrowserLanguage	= 'asp' ;	// asp | aspx | cfm | lasso | perl | php | py
135
var _QuickUploadLanguage	= 'asp' ;	// asp | aspx | cfm | lasso | php
136
 
137
// Don't care about the following line. It just calculates the correct connector
138
// extension to use for the default File Browser (Perl uses "cgi").
139
var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
140
 
431 ddelon 141
FCKConfig.LinkBrowser = true ;
875 ddelon 142
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
143
FCKConfig.LinkBrowserWindowWidth	= FCKConfig.ScreenWidth * 0.7 ;		// 70%
144
FCKConfig.LinkBrowserWindowHeight	= FCKConfig.ScreenHeight * 0.7 ;	// 70%
431 ddelon 145
 
146
FCKConfig.ImageBrowser = true ;
875 ddelon 147
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
148
FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	// 70% ;
149
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	// 70% ;
431 ddelon 150
 
151
FCKConfig.FlashBrowser = true ;
875 ddelon 152
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
153
FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	//70% ;
154
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	//70% ;
431 ddelon 155
 
156
FCKConfig.LinkUpload = true ;
875 ddelon 157
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
431 ddelon 158
FCKConfig.LinkUploadAllowedExtensions	= "" ;			// empty for all
159
FCKConfig.LinkUploadDeniedExtensions	= ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ;	// empty for no one
160
 
161
FCKConfig.ImageUpload = true ;
875 ddelon 162
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
431 ddelon 163
FCKConfig.ImageUploadAllowedExtensions	= ".(jpg|gif|jpeg|png)$" ;		// empty for all
164
FCKConfig.ImageUploadDeniedExtensions	= "" ;							// empty for no one
165
 
166
FCKConfig.FlashUpload = true ;
875 ddelon 167
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
431 ddelon 168
FCKConfig.FlashUploadAllowedExtensions	= ".(swf|fla)$" ;		// empty for all
169
FCKConfig.FlashUploadDeniedExtensions	= "" ;					// empty for no one
170
 
171
FCKConfig.SmileyPath	= FCKConfig.BasePath + 'images/smiley/msn/' ;
172
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'] ;
173
FCKConfig.SmileyColumns = 8 ;
174
FCKConfig.SmileyWindowWidth		= 320 ;
875 ddelon 175
FCKConfig.SmileyWindowHeight	= 240 ;