Ticket #196: fckconfig.js

File fckconfig.js, 11.2 KB (added by Muja, 17 years ago)

This is my fckconfig.js

Line 
1/*
2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
4 *
5 * == BEGIN LICENSE ==
6 *
7 * Licensed under the terms of any of the following licenses at your
8 * choice:
9 *
10 *  - GNU General Public License Version 2 or later (the "GPL")
11 *    http://www.gnu.org/licenses/gpl.html
12 *
13 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14 *    http://www.gnu.org/licenses/lgpl.html
15 *
16 *  - Mozilla Public License Version 1.1 or later (the "MPL")
17 *    http://www.mozilla.org/MPL/MPL-1.1.html
18 *
19 * == END LICENSE ==
20 *
21 * File Name: fckconfig.js
22 *      Editor configuration settings.
23 *     
24 *      Follow this link for more information:
25 *      http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Configurations_Settings
26 *
27 * File Authors:
28 *              Frederico Caldeira Knabben (www.fckeditor.net)
29 */
30
31// Disable the custom Enter Key Handler (this configuration will be removed in
32// version 2.5).
33FCKConfig.DisableEnterKeyHandler = false ;
34
35FCKConfig.CustomConfigurationsPath = '' ;
36
37FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
38FCKConfig.ToolbarComboPreviewCSS = '' ;
39
40FCKConfig.DocType = '' ;
41
42FCKConfig.BaseHref = '' ;
43
44FCKConfig.FullPage = false ;
45
46FCKConfig.Debug = false ;
47FCKConfig.AllowQueryStringDebug = true ;
48
49FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
50FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;
51
52FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
53
54// FCKConfig.Plugins.Add( 'autogrow' ) ;
55FCKConfig.AutoGrowMax = 400 ;
56
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;   // ASP style server side code <%...%>
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;        // ASP.Net style tags <asp:control>
60
61FCKConfig.AutoDetectLanguage    = true ;
62FCKConfig.DefaultLanguage               = 'en' ;
63FCKConfig.ContentLangDirection  = 'ltr' ;
64
65FCKConfig.ProcessHTMLEntities   = true ;
66FCKConfig.IncludeLatinEntities  = true ;
67FCKConfig.IncludeGreekEntities  = true ;
68
69FCKConfig.ProcessNumericEntities = false ;
70
71FCKConfig.AdditionalNumericEntities = ''  ;             // Single Quote: "'"
72
73FCKConfig.FillEmptyBlocks       = true ;
74
75FCKConfig.FormatSource          = true ;
76FCKConfig.FormatOutput          = true ;
77FCKConfig.FormatIndentator      = '    ' ;
78
79FCKConfig.ForceStrongEm = true ;
80FCKConfig.GeckoUseSPAN  = false ;
81FCKConfig.StartupFocus  = false ;
82FCKConfig.ForcePasteAsPlainText = false ;
83FCKConfig.AutoDetectPasteFromWord = true ;      // IE only.
84FCKConfig.ForceSimpleAmpersand  = false ;
85FCKConfig.TabSpaces             = 0 ;
86FCKConfig.ShowBorders   = true ;
87FCKConfig.SourcePopup   = false ;
88FCKConfig.ToolbarStartExpanded  = true ;
89FCKConfig.ToolbarCanCollapse    = true ;
90FCKConfig.IgnoreEmptyParagraphValue = true ;
91FCKConfig.PreserveSessionOnFileBrowser = true ;
92FCKConfig.FloatingPanelsZIndex = 10000 ;
93
94FCKConfig.TemplateReplaceAll = true ;
95FCKConfig.TemplateReplaceCheckbox = true ;
96
97FCKConfig.ToolbarLocation = 'In' ;
98
99FCKConfig.ToolbarSets["Default"] = [
100        ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
101        ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
102        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
103        ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
104        '/',
105        ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
106        ['OrderedList','UnorderedList','-','Outdent','Indent'],
107        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
108        ['Link','Unlink','Anchor'],
109        ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
110        '/',
111        ['Style','FontFormat','FontName','FontSize'],
112        ['TextColor','BGColor'],
113        ['FitWindow','-','TmplManager','TmplSave']
114] ;
115
116FCKConfig.ToolbarSets["Basic"] = [
117        ['Bold','Italic','Underline','Link','Unlink'],
118        ['FontName','FontSize','TextColor','BGColor','Smiley', 'Image']
119] ;
120
121FCKConfig.ToolbarSets["Lite"] = [
122        ['Source', 'FitWindow', 'NewPage'],['Cut','Copy','Paste','PasteText','PasteWord'],[ 'Undo','Redo','Find','Replace','SelectAll','RemoveFormat','SpecialChar','Table','Rule'],
123        ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
124        ['OrderedList','UnorderedList','-','Outdent','Indent'],
125        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Smiley'],
126        ['Link','Unlink', 'Image','Flash','BGColor'],
127        ['FontFormat','FontName','FontSize','TextColor'],
128        ['TmplManager','TmplSave']
129] ;
130
131FCKConfig.EnterMode = 'p' ;                     // p | div | br
132FCKConfig.ShiftEnterMode = 'br' ;       // p | div | br
133
134FCKConfig.Keystrokes = [
135        [ CTRL + 65 /*A*/, true ],
136        [ CTRL + 67 /*C*/, true ],
137        [ CTRL + 88 /*X*/, true ],
138        [ CTRL + 86 /*V*/, 'Paste' ],
139        [ SHIFT + 45 /*INS*/, 'Paste' ],
140        [ CTRL + 90 /*Z*/, 'Undo' ],
141        [ CTRL + 89 /*Y*/, 'Redo' ],
142        [ CTRL + SHIFT + 90 /*Z*/, 'Redo' ],
143        [ CTRL + 76 /*L*/, 'Link' ],
144        [ CTRL + 66 /*B*/, 'Bold' ],
145        [ CTRL + 73 /*I*/, 'Italic' ],
146        [ CTRL + 85 /*U*/, 'Underline' ],
147        [ CTRL + ALT + 83 /*S*/, 'Save' ],
148        [ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ],
149        [ CTRL + 9 /*TAB*/, 'Source' ]
150] ;
151
152FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
153
154FCKConfig.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' ;
155
156FCKConfig.FontNames             = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
157FCKConfig.FontSizes             = '1/8pt;2/10pt;3/12pt;4/14pt;5/18pt;6/24pt;7/36pt' ;
158FCKConfig.FontFormats   = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
159
160FCKConfig.StylesXmlPath         = FCKConfig.EditorPath + 'fckstyles.xml' ;
161FCKConfig.TemplatesXmlPath      = FCKConfig.EditorPath + 'fcktemplates.xml' ;
162
163FCKConfig.SpellChecker                  = 'ieSpell' ;   // 'ieSpell' | 'SpellerPages'
164FCKConfig.IeSpellDownloadUrl    = 'http://wcarchive.cdrom.com/pub/simtelnet/handheld/webbrow1/ieSpellSetup240428.exe' ;
165FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;        // Available extension: .php .cfm .pl
166
167FCKConfig.MaxUndoLevels = 15 ;
168
169FCKConfig.DisableObjectResizing = false ;
170FCKConfig.DisableFFTableHandles = true ;
171
172FCKConfig.LinkDlgHideTarget             = false ;
173FCKConfig.LinkDlgHideAdvanced   = false ;
174
175FCKConfig.ImageDlgHideLink              = false ;
176FCKConfig.ImageDlgHideAdvanced  = false ;
177
178FCKConfig.FlashDlgHideAdvanced  = false ;
179
180FCKConfig.ProtectedTags = '' ;
181
182// This will be applied to the body element of the editor
183FCKConfig.BodyId = '' ;
184FCKConfig.BodyClass = '' ;
185
186// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word
187FCKConfig.CleanWordKeepsStructure = false ;
188
189// The following value defines which File Browser connector and Quick Upload
190// "uploader" to use. It is valid for the default implementaion and it is here
191// just to make this configuration file cleaner.
192// It is not possible to change this value using an external file or even
193// inline when creating the editor instance. In that cases you must set the
194// values of LinkBrowserURL, ImageBrowserURL and so on.
195// Custom implementations should just ignore it.
196var _FileBrowserLanguage        = 'php' ;       // asp | aspx | cfm | lasso | perl | php | py
197var _QuickUploadLanguage        = 'php' ;       // asp | aspx | cfm | lasso | php
198
199// Don't care about the following line. It just calculates the correct connector
200// extension to use for the default File Browser (Perl uses "cgi").
201var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
202
203FCKConfig.LinkBrowser = true ;
204FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
205FCKConfig.LinkBrowserWindowWidth        = FCKConfig.ScreenWidth * 0.7 ;         // 70%
206FCKConfig.LinkBrowserWindowHeight       = FCKConfig.ScreenHeight * 0.7 ;        // 70%
207
208FCKConfig.ImageBrowser = true ;
209FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
210FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;      // 70% ;
211FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;     // 70% ;
212
213FCKConfig.FlashBrowser = true ;
214FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
215FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;      //70% ;
216FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;     //70% ;
217
218FCKConfig.LinkUpload = true ;
219FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
220FCKConfig.LinkUploadAllowedExtensions   = "" ;                  // empty for all
221FCKConfig.LinkUploadDeniedExtensions    = ".(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|com|dll|vbs|js|reg|cgi|htaccess|asis)$" ;     // empty for no one
222
223FCKConfig.ImageUpload = true ;
224FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
225FCKConfig.ImageUploadAllowedExtensions  = ".(jpg|gif|jpeg|png|bmp)$" ;          // empty for all
226FCKConfig.ImageUploadDeniedExtensions   = "" ;                                                  // empty for no one
227
228FCKConfig.FlashUpload = true ;
229FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
230FCKConfig.FlashUploadAllowedExtensions  = ".(swf|fla)$" ;               // empty for all
231FCKConfig.FlashUploadDeniedExtensions   = "" ;                                  // empty for no one
232
233FCKConfig.SmileyPath    = FCKConfig.BasePath + 'images/smiley/toyol/' ;
234FCKConfig.SmileyImages  = ['salam.gif','smile1.gif','smile2.gif','smile3.gif','smile4.gif','smile5.gif','smile6.gif','smile7.gif','smile8.gif','smile9.gif','smile10.gif','smile11.gif','smile12.gif','smile13.gif','smile14.gif','smokes.gif','whistle.gif','sad1.gif','sad2.gif','sad3.gif','sad4.gif','sad5.gif','laugh1.gif', 'laugh2.gif','laugh3.gif','laugh4.gif','laugh5.gif','mad1.gif','mad2.gif','mad3.gif','mad4.gif','mad5.gif','mad6.gif','malu.gif','no1.gif','no2.gif','nyorok.gif','padanmuke.gif','point.gif','pompom.gif','pray.gif','puke.gif','offtopic.gif','sepanduk2.gif','shutup.gif','shock1.gif','shock2.gif','sleep.gif','evil.gif','dead.gif','confuse1.gif','confuse2.gif','confuse3.gif','confuse4.gif','blush.gif','bodek.gif','bye.gif','clap.gif','fight1.gif','fight2.gif','fight3.gif','fight4.gif','fight5.gif','fight6.gif','fright.gif','gilos.gif','hug.gif', 'titter.gif', 'wsalam.gif',] ;
235FCKConfig.SmileyColumns = 8 ;
236FCKConfig.SmileyWindowWidth             = 550 ;
237FCKConfig.SmileyWindowHeight    = 550 ;
238
239FCKConfig.Plugins.Add('kfm');
240FCKConfig.Plugins.Add( 'TmplSave', 'en' ) ;
241FCKConfig.Plugins.Add( 'TmplManager', 'en' ) ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy