Project

General

Profile

« Previous | Next » 

Revision 1289

Added by kweitzel over 14 years ago

Branch 2.8.1 merged back into Trunk

View differences:

wb_fckconfig.js
15 15
*/
16 16

  
17 17
// required settings to make FCKEditor work with Website Baker (do not change them)
18
   FCKConfig.Plugins.Add( 'WBModules', 'en,nl,de' ) ;
19
   FCKConfig.Plugins.Add( 'WBDroplets', 'en,nl,de' ) ;
18
    FCKConfig.Plugins.Add( 'WBModules', 'en,nl,de' ) ;
19
    FCKConfig.Plugins.Add( 'WBDroplets', 'en,nl,de' ) ;
20
//  FCKConfig.Plugins.Add( 'youtube', 'en,ja,de' );
21
    FCKConfig.Plugins.Add( 'swfobject', 'en,es') ;
22
//  FCKConfig.Plugins.Add( 'flvPlayer','en,de') ;
20 23

  
24
// ----------------------
25
// Configure Syntax highlighter for 2.0.x
26
FCKConfig.Plugins.Add('syntaxhighlight2', 'en');
27
// default language options:
28
// c++,csharp,css,delphi,java,jscript,php,python,ruby,sql,vb,xhtml
29
FCKConfig.SyntaxHighlight2LangDefault = 'php';
30
//
31
// ----------------------
32

  
33
// FCKConfig.Plugins.Add( 'autogrow' ) ;
34
// FCKConfig.Plugins.Add( 'dragresizetable' );
35
FCKConfig.AutoGrowMax = 600 ;
36

  
37
// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
38
// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
39
// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
40

  
21 41
// #########################################################################################
22 42
// # FCKEditor: General settings
23 43
// # ---------------------------------------------------------------------------------------
......
39 59

  
40 60
// specify HTML tag used for ENTER and SHIFT+ENTER key
41 61
   FCKConfig.EnterMode 			= 'p' ;		// allowed tags: p | div | br
42
   FCKConfig.ShiftEnterMode 		= 'br' ;	// allowed tags: p | div | br
43

  
62
   FCKConfig.ShiftEnterMode 	= 'br' ;	// allowed tags: p | div | br
63
   FCKConfig.StylesXmlPath		= FCKConfig.EditorPath + 'fckstyles.xml' ;
64
 
44 65
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
45 66
// Note: If you miss some options, have a look into fckconfig.js and add the lines below
46 67
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
......
58 79
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
59 80
//  Default toolbar set used by Website Baker
60 81
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
61
   FCKConfig.ToolbarSets["WBToolbar"] = [
62
	['Source'],
82
   FCKConfig.ToolbarSets["Original"] = [
83
	['Source','Save'],
63 84
	['Cut','Copy','Paste','PasteText','PasteWord','-','SpellCheck'],
64 85
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
65 86
	['Smiley','SpecialChar'],
......
68 89
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
69 90
	['OrderedList','UnorderedList','-','Outdent','Indent'],
70 91
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
71
	['WBDroplets','WBModules','Link','Unlink','Anchor'],
92
	['Link','Unlink','Anchor'],
72 93
	['Image','Flash','Table','Rule'],
73 94
	'/',
74 95
	['Style','FontFormat','FontName','FontSize'],
......
78 99
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
79 100
//  original FCKEditor toolbar
80 101
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
81
   FCKConfig.ToolbarSets["Original"] = [
82
	['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
102
   FCKConfig.ToolbarSets["WBToolbar"] = [
103
	['Source','DocProps','-','NewPage','Preview','-','Templates'],
83 104
	['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
84
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
105
    ['FitWindow','ShowBlocks', '-', /* 'SyntaxHighLight2', */ /* 'flvPlayer', */ '-','About'],
106
	'/',
85 107
	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
108
    ['TextColor','BGColor'],
109
	['WBDroplets','WBModules','Link','Unlink','Anchor'],
110
	['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
86 111
	'/',
87 112
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
88 113
	['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
89 114
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
90
	['Link','Unlink','Anchor'],
91
	['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
115
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
92 116
	'/',
93
	['Style','FontFormat','FontName','FontSize'],
94
	['TextColor','BGColor'],
95
	['FitWindow','ShowBlocks','-','About']		// No comma for the last row.
117
	['Style','FontFormat','FontName','FontSize']  // No comma for the last row.
118

  
96 119
] ;
97 120

  
98 121

  
......
122 145

  
123 146
// define HTML elements which appear in the FCK "Format" toolbar menu
124 147
   FCKConfig.FontFormats	= 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
125

  
126 148
// define font colors which can be set by the user (HEXADECIMAL)
127 149
   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' ;
128

  
129 150
// define fonts style and sizes which can be set by the user
130
   FCKConfig.FontNames	= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
131
   FCKConfig.FontSizes	= 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
132

  
151
   FCKConfig.FontNames	= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;Wingdings' ;
152
//   FCKConfig.FontSizes	= 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
153
   FCKConfig.FontSizes	= '8px;10px;12px;14px;16px;18px;20px;24px;28px;32px;36px;48px;60px;72px' ;
133 154
// make the offic2003 skin the default skin
134 155
   FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/'
156
   FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;
157
   FCKConfig.TemplateReplaceAll = false;
158
   FCKConfig.TemplateReplaceCheckbox = true ;
159
   FCKConfig['StylesXmlPath'] = FCKConfig.BasePath+'/wb_config/wb_fckstyles.xml';
135 160

  
136 161
/*
137 162
   -----------------------------------------------------------------------------------------

Also available in: Unified diff