Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
392 jpm 1
/*
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:
16
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
17
 */
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
 
29
FCKConfig.Debug = false ;
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 ;
38
FCKConfig.DefaultLanguage		= 'en' ;
39
FCKConfig.ContentLangDirection	= 'ltr' ;
40
 
41
FCKConfig.EnableXHTML		= true ;
42
FCKConfig.EnableSourceXHTML	= true ;
43
 
44
FCKConfig.ProcessHTMLEntities	= true ;
45
FCKConfig.IncludeLatinEntities	= true ;
46
FCKConfig.IncludeGreekEntities	= true ;
47
 
48
FCKConfig.FillEmptyBlocks	= true ;
49
 
50
FCKConfig.FormatSource		= true ;
51
FCKConfig.FormatOutput		= true ;
52
FCKConfig.FormatIndentator	= '    ' ;
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 ;
63
 
64
FCKConfig.ToolbarSets["Default"] = [
65
	['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
66
	['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
67
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
68
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
69
	['OrderedList','UnorderedList','-','Outdent','Indent'],
70
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
71
	['Link','Unlink','Anchor'],
72
	['Image','Table','Rule','Smiley','SpecialChar','UniversalKey'],
73
	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
74
	'/',
75
	['Style','FontFormat','FontName','FontSize'],
76
	['TextColor','BGColor'],
77
	['About']
78
] ;
79
 
80
FCKConfig.ToolbarSets["Basic"] = [
81
	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
82
] ;
393 jpm 83
 
84
FCKConfig.ToolbarSets["Papyrus"] = [
85
  ['Source','-','Cut','Copy','Paste','PasteText','PasteWord','SelectAll','-','Undo','Redo','Find','Replace'],
86
  ['RemoveFormat','Bold','Italic','Underline','StrikeThrough','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Link','Unlink'],
87
  ['Image','Table','Rule','Smiley','SpecialChar','UniversalKey','-','About']
88
] ;
392 jpm 89
 
90
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
91
 
92
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' ;
93
 
94
FCKConfig.FontNames		= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
95
FCKConfig.FontSizes		= '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
96
FCKConfig.FontFormats	= 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
97
 
98
FCKConfig.StylesXmlPath		= FCKConfig.EditorPath + 'fckstyles.xml' ;
99
FCKConfig.TemplatesXmlPath	= FCKConfig.EditorPath + 'fcktemplates.xml' ;
100
 
101
FCKConfig.SpellChecker			= 'ieSpell' ;	// 'ieSpell' | 'SpellerPages'
102
FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
103
 
104
FCKConfig.MaxUndoLevels = 15 ;
105
 
106
FCKConfig.LinkDlgHideTarget		= false ;
107
FCKConfig.LinkDlgHideAdvanced	= false ;
108
 
109
FCKConfig.ImageDlgHideLink		= false ;
110
FCKConfig.ImageDlgHideAdvanced	= false ;
111
 
112
FCKConfig.LinkBrowser = true ;
113
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp' ;
114
//FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/CustomFiles/' ;
115
// ASP.Net		// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx' ;
116
// ColdFusion	// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm' ;
117
// Perl			// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/perl/connector.cgi' ;
118
// PHP			// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;
119
// PHP - mcpuk	// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ;
120
FCKConfig.LinkBrowserWindowWidth	= screen.width * 0.7 ;	// 70%
121
FCKConfig.LinkBrowserWindowHeight	= screen.height * 0.7 ;	// 70%
122
 
123
FCKConfig.ImageBrowser = true ;
124
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/asp/connector.asp' ;
125
// ASP.Net		// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx' ;
126
// ColdFusion	// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/cfm/connector.cfm' ;
127
// Perl			// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/perl/connector.cgi' ;
128
// PHP			// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
129
// PHP - mcpuk	// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
130
FCKConfig.ImageBrowserWindowWidth  = screen.width * 0.7 ;	// 70% ;
131
FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ;	// 70% ;
132
 
133
FCKConfig.SmileyPath	= FCKConfig.BasePath + 'images/smiley/msn/' ;
134
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'] ;
135
FCKConfig.SmileyColumns = 8 ;
136
FCKConfig.SmileyWindowWidth		= 320 ;
137
FCKConfig.SmileyWindowHeight	= 240 ;