Subversion Repositories Applications.papyrus

Rev

Rev 1495 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1495 jp_milcent 1
/*
424 ddelon 2
 * FCKeditor - The text editor for internet
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
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
 *
11
 * File Name: fckconfig.js
12
 * 	Editor configuration settings.
13
 * 	See the documentation for more info.
14
 *
15
 * File Authors:
431 ddelon 16
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
17
 */
424 ddelon 18
 
19
FCKConfig.CustomConfigurationsPath = '' ;
20
 
21
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
22
 
23
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
24
 
25
FCKConfig.BaseHref = '' ;
26
 
27
FCKConfig.FullPage = false ;
28
 
431 ddelon 29
FCKConfig.Debug = false ;
424 ddelon 30
 
31
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
32
 
33
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
34
 
35
// FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
36
 
37
FCKConfig.AutoDetectLanguage	= true ;
431 ddelon 38
FCKConfig.DefaultLanguage		= 'fr' ;
424 ddelon 39
FCKConfig.ContentLangDirection	= 'ltr' ;
40
 
431 ddelon 41
FCKConfig.EnableXHTML		= true ;	// Unsupported: Do not change.
42
FCKConfig.EnableSourceXHTML	= true ;	// Unsupported: Do not change.
424 ddelon 43
 
431 ddelon 44
FCKConfig.ProcessHTMLEntities	= false ;
45
FCKConfig.IncludeLatinEntities	= false ;
424 ddelon 46
FCKConfig.IncludeGreekEntities	= false ;
47
 
48
FCKConfig.FillEmptyBlocks	= true ;
49
 
50
FCKConfig.FormatSource		= true ;
51
FCKConfig.FormatOutput		= true ;
1495 jp_milcent 52
FCKConfig.FormatIndentator	= '\t' ;
424 ddelon 53
 
54
FCKConfig.GeckoUseSPAN	= true ;
55
FCKConfig.StartupFocus	= false ;
56
FCKConfig.ForcePasteAsPlainText	= false ;
57
FCKConfig.ForceSimpleAmpersand	= false ;
58
FCKConfig.TabSpaces		= 0 ;
59
FCKConfig.ShowBorders	= true ;
60
FCKConfig.UseBROnCarriageReturn	= false ;
61
FCKConfig.ToolbarStartExpanded	= true ;
62
FCKConfig.ToolbarCanCollapse	= true ;
431 ddelon 63
FCKConfig.IEForceVScroll = false ;
64
FCKConfig.IgnoreEmptyParagraphValue = true ;
424 ddelon 65
 
66
FCKConfig.ToolbarSets["Default"] = [
67
	['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
68
	['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
69
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
70
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
71
	['OrderedList','UnorderedList','-','Outdent','Indent'],
72
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
73
	['Link','Unlink','Anchor'],
431 ddelon 74
	['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey'],
424 ddelon 75
	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
76
	'/',
77
	['Style','FontFormat','FontName','FontSize'],
78
	['TextColor','BGColor'],
79
	['About']
80
] ;
81
 
82
FCKConfig.ToolbarSets["Basic"] = [
83
	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
84
] ;
431 ddelon 85
FCKConfig.ToolbarSets["Papyrus"] = [
86
  ['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'],
437 ddelon 88
  '/',
431 ddelon 89
  ['Image','Table','Link','Unlink','Rule','SpecialChar','UniversalKey'],
90
  ['FontFormat','FontName','FontSize','TextColor'],
91
  ['About']
92
] ;
424 ddelon 93
 
431 ddelon 94
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
424 ddelon 95
 
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' ;
97
 
98
FCKConfig.FontNames		= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
99
FCKConfig.FontSizes		= '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
100
FCKConfig.FontFormats	= 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
101
 
102
FCKConfig.StylesXmlPath		= FCKConfig.EditorPath + 'fckstyles.xml' ;
103
FCKConfig.TemplatesXmlPath	= FCKConfig.EditorPath + 'fcktemplates.xml' ;
104
 
105
FCKConfig.SpellChecker			= 'ieSpell' ;	// 'ieSpell' | 'SpellerPages'
106
FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
107
 
108
FCKConfig.MaxUndoLevels = 15 ;
109
 
431 ddelon 110
FCKConfig.DisableImageHandles = false ;
111
FCKConfig.DisableTableHandles = false ;
112
 
424 ddelon 113
FCKConfig.LinkDlgHideTarget		= false ;
114
FCKConfig.LinkDlgHideAdvanced	= false ;
115
 
116
FCKConfig.ImageDlgHideLink		= false ;
117
FCKConfig.ImageDlgHideAdvanced	= false ;
118
 
431 ddelon 119
FCKConfig.FlashDlgHideAdvanced	= false ;
120
 
424 ddelon 121
FCKConfig.LinkBrowser = true ;
1495 jp_milcent 122
// PHP	//
424 ddelon 123
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;
436 ddelon 124
// PHP - mcpuk
125
//FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ;
424 ddelon 126
FCKConfig.LinkBrowserWindowWidth	= screen.width * 0.7 ;	// 70%
127
FCKConfig.LinkBrowserWindowHeight	= screen.height * 0.7 ;	// 70%
128
 
129
FCKConfig.ImageBrowser = true ;
1495 jp_milcent 130
// PHP	//
424 ddelon 131
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
436 ddelon 132
// PHP - mcpuk
133
//FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
424 ddelon 134
FCKConfig.ImageBrowserWindowWidth  = screen.width * 0.7 ;	// 70% ;
135
FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ;	// 70% ;
136
 
431 ddelon 137
FCKConfig.FlashBrowser = true ;
1495 jp_milcent 138
// PHP	//
431 ddelon 139
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php' ;
436 ddelon 140
// PHP - mcpuk
141
// FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Flash&Connector=connectors/php/connector.php' ;
431 ddelon 142
FCKConfig.FlashBrowserWindowWidth  = screen.width * 0.7 ;	//70% ;
143
FCKConfig.FlashBrowserWindowHeight = screen.height * 0.7 ;	//70% ;
144
 
145
FCKConfig.LinkUpload = true ;
146
// PHP //
147
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php' ;
148
FCKConfig.LinkUploadAllowedExtensions	= "" ;			// empty for all
149
FCKConfig.LinkUploadDeniedExtensions	= ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ;	// empty for no one
150
 
151
FCKConfig.ImageUpload = true ;
152
// PHP //
153
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Image' ;
154
FCKConfig.ImageUploadAllowedExtensions	= ".(jpg|gif|jpeg|png)$" ;		// empty for all
155
FCKConfig.ImageUploadDeniedExtensions	= "" ;							// empty for no one
156
 
157
FCKConfig.FlashUpload = true ;
158
// PHP //
159
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Flash' ;
160
FCKConfig.FlashUploadAllowedExtensions	= ".(swf|fla)$" ;		// empty for all
161
FCKConfig.FlashUploadDeniedExtensions	= "" ;					// empty for no one
162
 
424 ddelon 163
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'] ;
165
FCKConfig.SmileyColumns = 8 ;
166
FCKConfig.SmileyWindowWidth		= 320 ;
431 ddelon 167
FCKConfig.SmileyWindowHeight	= 240 ;
168
 
169
if( window.console ) window.console.log( 'Config is loaded!' ) ;	// @Packager.Compactor.RemoveLine