Revision 1161
Added by Dietmar over 14 years ago
wb_fckconfig.js | ||
---|---|---|
18 | 18 |
FCKConfig.Plugins.Add( 'WBModules', 'en,nl,de' ) ; |
19 | 19 |
FCKConfig.Plugins.Add( 'WBDroplets', 'en,nl,de' ) ; |
20 | 20 |
|
21 |
// ---------------------- |
|
22 |
// Configure Syntax highlighter for 2.0.x |
|
23 |
FCKConfig.Plugins.Add('syntaxhighlight2', 'en'); |
|
24 |
// default language options: |
|
25 |
// c++,csharp,css,delphi,java,jscript,php,python,ruby,sql,vb,xhtml |
|
26 |
FCKConfig.SyntaxHighlight2LangDefault = 'php'; |
|
27 |
// |
|
28 |
// ---------------------- |
|
29 |
|
|
30 |
// FCKConfig.Plugins.Add( 'autogrow' ) ; |
|
31 |
// FCKConfig.Plugins.Add( 'dragresizetable' ); |
|
32 |
FCKConfig.AutoGrowMax = 600 ; |
|
33 |
|
|
34 |
// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> |
|
35 |
// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code |
|
36 |
// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> |
|
37 |
|
|
21 | 38 |
// ######################################################################################### |
22 | 39 |
// # FCKEditor: General settings |
23 | 40 |
// # --------------------------------------------------------------------------------------- |
... | ... | |
39 | 56 |
|
40 | 57 |
// specify HTML tag used for ENTER and SHIFT+ENTER key |
41 | 58 |
FCKConfig.EnterMode = 'p' ; // allowed tags: p | div | br |
42 |
FCKConfig.ShiftEnterMode = 'br' ; // allowed tags: p | div | br |
|
43 |
|
|
59 |
FCKConfig.ShiftEnterMode = 'br' ; // allowed tags: p | div | br |
|
60 |
FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; |
|
61 |
|
|
44 | 62 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
45 | 63 |
// Note: If you miss some options, have a look into fckconfig.js and add the lines below |
46 | 64 |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
... | ... | |
58 | 76 |
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |
59 | 77 |
// Default toolbar set used by Website Baker |
60 | 78 |
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |
61 |
FCKConfig.ToolbarSets["WBToolbar"] = [
|
|
62 |
['Source'], |
|
79 |
FCKConfig.ToolbarSets["Original"] = [
|
|
80 |
['Source','Save'],
|
|
63 | 81 |
['Cut','Copy','Paste','PasteText','PasteWord','-','SpellCheck'], |
64 | 82 |
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], |
65 | 83 |
['Smiley','SpecialChar'], |
... | ... | |
68 | 86 |
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], |
69 | 87 |
['OrderedList','UnorderedList','-','Outdent','Indent'], |
70 | 88 |
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], |
71 |
['WBDroplets','WBModules','Link','Unlink','Anchor'],
|
|
89 |
['Link','Unlink','Anchor'], |
|
72 | 90 |
['Image','Flash','Table','Rule'], |
73 | 91 |
'/', |
74 | 92 |
['Style','FontFormat','FontName','FontSize'], |
... | ... | |
78 | 96 |
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |
79 | 97 |
// original FCKEditor toolbar |
80 | 98 |
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |
81 |
FCKConfig.ToolbarSets["Original"] = [
|
|
82 |
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
|
|
99 |
FCKConfig.ToolbarSets["WBToolbar"] = [
|
|
100 |
['Source','DocProps','-','NewPage','Preview','-','Templates'], |
|
83 | 101 |
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], |
84 |
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], |
|
102 |
['FitWindow','ShowBlocks', '-',/*'SyntaxHighLight2',*/'-','About'], |
|
103 |
'/', |
|
85 | 104 |
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], |
105 |
['TextColor','BGColor'], |
|
106 |
['WBDroplets','WBModules','Link','Unlink','Anchor'], |
|
107 |
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], |
|
86 | 108 |
'/', |
87 | 109 |
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], |
88 | 110 |
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'], |
89 | 111 |
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], |
90 |
['Link','Unlink','Anchor'], |
|
91 |
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], |
|
112 |
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], |
|
92 | 113 |
'/', |
93 |
['Style','FontFormat','FontName','FontSize'], |
|
94 |
['TextColor','BGColor'], |
|
95 |
['FitWindow','ShowBlocks','-','About'] // No comma for the last row. |
|
114 |
['Style','FontFormat','FontName','FontSize'] // No comma for the last row. |
|
115 |
|
|
96 | 116 |
] ; |
97 | 117 |
|
98 | 118 |
|
... | ... | |
122 | 142 |
|
123 | 143 |
// define HTML elements which appear in the FCK "Format" toolbar menu |
124 | 144 |
FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ; |
125 |
|
|
126 | 145 |
// define font colors which can be set by the user (HEXADECIMAL) |
127 | 146 |
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 | 147 |
// 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 |
|
|
148 |
FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;Wingdings' ;
|
|
149 |
// FCKConfig.FontSizes = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
|
|
150 |
FCKConfig.FontSizes = '8px;10px;12px;14px;16px;18px;20px;24px;28px;32px;36px;48px;60px;72px' ; |
|
133 | 151 |
// make the offic2003 skin the default skin |
134 | 152 |
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' |
153 |
FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; |
|
154 |
FCKConfig.TemplateReplaceAll = false; |
|
155 |
FCKConfig.TemplateReplaceCheckbox = true ; |
|
156 |
// FCKConfig['StylesXmlPath'] = FCKConfig.BasePath+'/wb_config/wb_fckstyles.xml'; |
|
135 | 157 |
|
136 | 158 |
/* |
137 | 159 |
----------------------------------------------------------------------------------------- |
Also available in: Unified diff
new update FCKeditor to Version 2.6.5 Modulversion 2.9.1