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). |
---|
33 | FCKConfig.DisableEnterKeyHandler = false ; |
---|
34 | |
---|
35 | FCKConfig.CustomConfigurationsPath = '' ; |
---|
36 | |
---|
37 | FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; |
---|
38 | FCKConfig.ToolbarComboPreviewCSS = '' ; |
---|
39 | |
---|
40 | FCKConfig.DocType = '' ; |
---|
41 | |
---|
42 | FCKConfig.BaseHref = '' ; |
---|
43 | |
---|
44 | FCKConfig.FullPage = false ; |
---|
45 | |
---|
46 | FCKConfig.Debug = false ; |
---|
47 | FCKConfig.AllowQueryStringDebug = true ; |
---|
48 | |
---|
49 | FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; |
---|
50 | FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ; |
---|
51 | |
---|
52 | FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; |
---|
53 | |
---|
54 | // FCKConfig.Plugins.Add( 'autogrow' ) ; |
---|
55 | FCKConfig.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 | |
---|
61 | FCKConfig.AutoDetectLanguage = true ; |
---|
62 | FCKConfig.DefaultLanguage = 'en' ; |
---|
63 | FCKConfig.ContentLangDirection = 'ltr' ; |
---|
64 | |
---|
65 | FCKConfig.ProcessHTMLEntities = true ; |
---|
66 | FCKConfig.IncludeLatinEntities = true ; |
---|
67 | FCKConfig.IncludeGreekEntities = true ; |
---|
68 | |
---|
69 | FCKConfig.ProcessNumericEntities = false ; |
---|
70 | |
---|
71 | FCKConfig.AdditionalNumericEntities = '' ; // Single Quote: "'" |
---|
72 | |
---|
73 | FCKConfig.FillEmptyBlocks = true ; |
---|
74 | |
---|
75 | FCKConfig.FormatSource = true ; |
---|
76 | FCKConfig.FormatOutput = true ; |
---|
77 | FCKConfig.FormatIndentator = ' ' ; |
---|
78 | |
---|
79 | FCKConfig.ForceStrongEm = true ; |
---|
80 | FCKConfig.GeckoUseSPAN = false ; |
---|
81 | FCKConfig.StartupFocus = false ; |
---|
82 | FCKConfig.ForcePasteAsPlainText = false ; |
---|
83 | FCKConfig.AutoDetectPasteFromWord = true ; // IE only. |
---|
84 | FCKConfig.ForceSimpleAmpersand = false ; |
---|
85 | FCKConfig.TabSpaces = 0 ; |
---|
86 | FCKConfig.ShowBorders = true ; |
---|
87 | FCKConfig.SourcePopup = false ; |
---|
88 | FCKConfig.ToolbarStartExpanded = true ; |
---|
89 | FCKConfig.ToolbarCanCollapse = true ; |
---|
90 | FCKConfig.IgnoreEmptyParagraphValue = true ; |
---|
91 | FCKConfig.PreserveSessionOnFileBrowser = true ; |
---|
92 | FCKConfig.FloatingPanelsZIndex = 10000 ; |
---|
93 | |
---|
94 | FCKConfig.TemplateReplaceAll = true ; |
---|
95 | FCKConfig.TemplateReplaceCheckbox = true ; |
---|
96 | |
---|
97 | FCKConfig.ToolbarLocation = 'In' ; |
---|
98 | |
---|
99 | FCKConfig.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 | |
---|
116 | FCKConfig.ToolbarSets["Basic"] = [ |
---|
117 | ['Bold','Italic','Underline','Link','Unlink'], |
---|
118 | ['FontName','FontSize','TextColor','BGColor','Smiley', 'Image'] |
---|
119 | ] ; |
---|
120 | |
---|
121 | FCKConfig.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 | |
---|
131 | FCKConfig.EnterMode = 'p' ; // p | div | br |
---|
132 | FCKConfig.ShiftEnterMode = 'br' ; // p | div | br |
---|
133 | |
---|
134 | FCKConfig.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 | |
---|
152 | FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ; |
---|
153 | |
---|
154 | 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' ; |
---|
155 | |
---|
156 | FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; |
---|
157 | FCKConfig.FontSizes = '1/8pt;2/10pt;3/12pt;4/14pt;5/18pt;6/24pt;7/36pt' ; |
---|
158 | FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ; |
---|
159 | |
---|
160 | FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; |
---|
161 | FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; |
---|
162 | |
---|
163 | FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' |
---|
164 | FCKConfig.IeSpellDownloadUrl = 'http://wcarchive.cdrom.com/pub/simtelnet/handheld/webbrow1/ieSpellSetup240428.exe' ; |
---|
165 | FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ; // Available extension: .php .cfm .pl |
---|
166 | |
---|
167 | FCKConfig.MaxUndoLevels = 15 ; |
---|
168 | |
---|
169 | FCKConfig.DisableObjectResizing = false ; |
---|
170 | FCKConfig.DisableFFTableHandles = true ; |
---|
171 | |
---|
172 | FCKConfig.LinkDlgHideTarget = false ; |
---|
173 | FCKConfig.LinkDlgHideAdvanced = false ; |
---|
174 | |
---|
175 | FCKConfig.ImageDlgHideLink = false ; |
---|
176 | FCKConfig.ImageDlgHideAdvanced = false ; |
---|
177 | |
---|
178 | FCKConfig.FlashDlgHideAdvanced = false ; |
---|
179 | |
---|
180 | FCKConfig.ProtectedTags = '' ; |
---|
181 | |
---|
182 | // This will be applied to the body element of the editor |
---|
183 | FCKConfig.BodyId = '' ; |
---|
184 | FCKConfig.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 |
---|
187 | FCKConfig.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. |
---|
196 | var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py |
---|
197 | var _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"). |
---|
201 | var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; |
---|
202 | |
---|
203 | FCKConfig.LinkBrowser = true ; |
---|
204 | FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; |
---|
205 | FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% |
---|
206 | FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% |
---|
207 | |
---|
208 | FCKConfig.ImageBrowser = true ; |
---|
209 | FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; |
---|
210 | FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; |
---|
211 | FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; |
---|
212 | |
---|
213 | FCKConfig.FlashBrowser = true ; |
---|
214 | FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; |
---|
215 | FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; |
---|
216 | FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; |
---|
217 | |
---|
218 | FCKConfig.LinkUpload = true ; |
---|
219 | FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ; |
---|
220 | FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all |
---|
221 | FCKConfig.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 | |
---|
223 | FCKConfig.ImageUpload = true ; |
---|
224 | FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ; |
---|
225 | FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all |
---|
226 | FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one |
---|
227 | |
---|
228 | FCKConfig.FlashUpload = true ; |
---|
229 | FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ; |
---|
230 | FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all |
---|
231 | FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one |
---|
232 | |
---|
233 | FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/toyol/' ; |
---|
234 | FCKConfig.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',] ; |
---|
235 | FCKConfig.SmileyColumns = 8 ; |
---|
236 | FCKConfig.SmileyWindowWidth = 550 ; |
---|
237 | FCKConfig.SmileyWindowHeight = 550 ; |
---|
238 | |
---|
239 | FCKConfig.Plugins.Add('kfm'); |
---|
240 | FCKConfig.Plugins.Add( 'TmplSave', 'en' ) ; |
---|
241 | FCKConfig.Plugins.Add( 'TmplManager', 'en' ) ; |
---|