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 | * "Support Open Source software. What about a donation today?" |
---|
12 | * |
---|
13 | * File Name: fckconfig.js |
---|
14 | * Editor configuration settings. |
---|
15 | * See the documentation for more info. |
---|
16 | * |
---|
17 | * File Authors: |
---|
18 | * Frederico Caldeira Knabben (fredck@fckeditor.net) |
---|
19 | */ |
---|
20 | |
---|
21 | FCKConfig.CustomConfigurationsPath = '' ; |
---|
22 | |
---|
23 | FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; |
---|
24 | |
---|
25 | FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ; |
---|
26 | |
---|
27 | FCKConfig.BaseHref = '' ; |
---|
28 | |
---|
29 | FCKConfig.FullPage = false ; |
---|
30 | |
---|
31 | FCKConfig.Debug = false ; |
---|
32 | FCKConfig.AllowQueryStringDebug = true ; |
---|
33 | |
---|
34 | FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; |
---|
35 | |
---|
36 | FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; |
---|
37 | |
---|
38 | // FCKConfig.Plugins.Add( 'placeholder', 'de,en,fr,it,pl' ) ; |
---|
39 | |
---|
40 | FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ; // <SCRIPT> tags. |
---|
41 | // FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> |
---|
42 | // FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code <?...?> |
---|
43 | // FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> |
---|
44 | |
---|
45 | FCKConfig.AutoDetectLanguage = true ; |
---|
46 | FCKConfig.DefaultLanguage = 'en' ; |
---|
47 | FCKConfig.ContentLangDirection = 'ltr' ; |
---|
48 | |
---|
49 | FCKConfig.EnableXHTML = true ; // Unsupported: Do not change. |
---|
50 | FCKConfig.EnableSourceXHTML = true ; // Unsupported: Do not change. |
---|
51 | |
---|
52 | FCKConfig.ProcessHTMLEntities = true ; |
---|
53 | FCKConfig.IncludeLatinEntities = true ; |
---|
54 | FCKConfig.IncludeGreekEntities = true ; |
---|
55 | |
---|
56 | FCKConfig.FillEmptyBlocks = true ; |
---|
57 | |
---|
58 | FCKConfig.FormatSource = true ; |
---|
59 | FCKConfig.FormatOutput = true ; |
---|
60 | FCKConfig.FormatIndentator = ' ' ; |
---|
61 | |
---|
62 | FCKConfig.ForceStrongEm = true ; |
---|
63 | FCKConfig.GeckoUseSPAN = true ; |
---|
64 | FCKConfig.StartupFocus = false ; |
---|
65 | FCKConfig.ForcePasteAsPlainText = false ; |
---|
66 | FCKConfig.AutoDetectPasteFromWord = true ; // IE only. |
---|
67 | FCKConfig.ForceSimpleAmpersand = false ; |
---|
68 | FCKConfig.TabSpaces = 0 ; |
---|
69 | FCKConfig.ShowBorders = true ; |
---|
70 | FCKConfig.UseBROnCarriageReturn = false ; // IE only. |
---|
71 | FCKConfig.ToolbarStartExpanded = true ; |
---|
72 | FCKConfig.ToolbarCanCollapse = true ; |
---|
73 | FCKConfig.IEForceVScroll = false ; |
---|
74 | FCKConfig.IgnoreEmptyParagraphValue = true ; |
---|
75 | FCKConfig.PreserveSessionOnFileBrowser = false ; |
---|
76 | FCKConfig.FloatingPanelsZIndex = 10000 ; |
---|
77 | |
---|
78 | FCKConfig.ToolbarSets["Default"] = [ |
---|
79 | ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], |
---|
80 | ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], |
---|
81 | ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], |
---|
82 | ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], |
---|
83 | ['OrderedList','UnorderedList','-','Outdent','Indent'], |
---|
84 | ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], |
---|
85 | ['Link','Unlink','Anchor'], |
---|
86 | ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'], |
---|
87 | ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], |
---|
88 | '/', |
---|
89 | ['Style','FontFormat','FontName','FontSize'], |
---|
90 | ['TextColor','BGColor'], |
---|
91 | ['About'] |
---|
92 | ] ; |
---|
93 | |
---|
94 | FCKConfig.ToolbarSets["Basic"] = [ |
---|
95 | ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] |
---|
96 | ] ; |
---|
97 | |
---|
98 | FCKConfig.ToolbarSets["Raket"] = [ |
---|
99 | ['Source','-'], |
---|
100 | ['Cut','Copy','Paste','PasteText','PasteWord'], |
---|
101 | ['Undo','Redo',/*'-','Find','Replace',*/'-','SelectAll','RemoveFormat'], |
---|
102 | ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], |
---|
103 | ['OrderedList','UnorderedList','-','Outdent','Indent'], |
---|
104 | ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], |
---|
105 | ['Link','Unlink'/*,'Anchor'*/], |
---|
106 | ['Image','Flash','Table','Rule','SpecialChar'], |
---|
107 | /*['ShowTableBorders','ShowDetails','-','Zoom'],*/ |
---|
108 | [/*'FontStyleAdv','-','FontStyle','-',*/'FontFormat'], |
---|
109 | ['About'] |
---|
110 | ] ; |
---|
111 | |
---|
112 | |
---|
113 | FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ; |
---|
114 | |
---|
115 | 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' ; |
---|
116 | |
---|
117 | FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; |
---|
118 | FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ; |
---|
119 | FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ; |
---|
120 | |
---|
121 | FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; |
---|
122 | FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; |
---|
123 | |
---|
124 | FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' |
---|
125 | FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ; |
---|
126 | |
---|
127 | FCKConfig.MaxUndoLevels = 15 ; |
---|
128 | |
---|
129 | FCKConfig.DisableImageHandles = false ; |
---|
130 | FCKConfig.DisableTableHandles = false ; |
---|
131 | |
---|
132 | FCKConfig.LinkDlgHideTarget = false ; |
---|
133 | FCKConfig.LinkDlgHideAdvanced = false ; |
---|
134 | |
---|
135 | FCKConfig.ImageDlgHideLink = false ; |
---|
136 | FCKConfig.ImageDlgHideAdvanced = false ; |
---|
137 | |
---|
138 | FCKConfig.FlashDlgHideAdvanced = false ; |
---|
139 | |
---|
140 | // The following value defines which File Browser connector and Quick Upload |
---|
141 | // "uploader" to use. It is valid for the default implementaion and it is here |
---|
142 | // just to make this configuration file cleaner. |
---|
143 | // It is not possible to change this value using an external file or even |
---|
144 | // inline when creating the editor instance. In that cases you must set the |
---|
145 | // values of LinkBrowserURL, ImageBrowserURL and so on. |
---|
146 | // Custom implementations should just ignore it. |
---|
147 | var _FileBrowserLanguage = 'jsp' ; // asp | aspx | cfm | lasso | perl | php | py |
---|
148 | var _QuickUploadLanguage = 'jsp' ; // asp | aspx | cfm | lasso | php |
---|
149 | |
---|
150 | var _StartFolderImages = "images"; |
---|
151 | var _StartFolderFlash = "flash"; |
---|
152 | |
---|
153 | // Don't care about the following line. It just calculates the correct connector |
---|
154 | // extension to use for the default File Browser (Perl uses "cgi"). |
---|
155 | var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; |
---|
156 | |
---|
157 | FCKConfig.LinkBrowser = true ; |
---|
158 | FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector' ; |
---|
159 | FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% |
---|
160 | FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% |
---|
161 | |
---|
162 | FCKConfig.ImageBrowser = true ; |
---|
163 | FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&CurrentFolder=' + _StartFolderImages + '&Connector=connectors/' + _FileBrowserLanguage + '/connector' ; |
---|
164 | FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; |
---|
165 | FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; |
---|
166 | |
---|
167 | FCKConfig.FlashBrowser = true ; |
---|
168 | FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&CurrentFolder=' + _StartFolderFlash + '&Connector=connectors/' + _FileBrowserLanguage + '/connector' ; |
---|
169 | FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; |
---|
170 | FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; |
---|
171 | |
---|
172 | FCKConfig.LinkUpload = true ; |
---|
173 | FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ; |
---|
174 | FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all |
---|
175 | FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one |
---|
176 | |
---|
177 | FCKConfig.ImageUpload = true ; |
---|
178 | FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ; |
---|
179 | FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all |
---|
180 | FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one |
---|
181 | |
---|
182 | FCKConfig.FlashUpload = true ; |
---|
183 | FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ; |
---|
184 | FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all |
---|
185 | FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one |
---|
186 | |
---|
187 | FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; |
---|
188 | 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'] ; |
---|
189 | FCKConfig.SmileyColumns = 8 ; |
---|
190 | FCKConfig.SmileyWindowWidth = 320 ; |
---|
191 | FCKConfig.SmileyWindowHeight = 240 ; |
---|
192 | |
---|
193 | if( window.console ) window.console.log( 'Config is loaded!' ) ; // @Packager.Compactor.RemoveLine |
---|