Ticket #1745: fckconfig.js_

File fckconfig.js_, 9.2 KB (added by Michael Osipov, 12 years ago)
Line 
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
21FCKConfig.CustomConfigurationsPath = '' ;
22
23FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
24
25FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
26
27FCKConfig.BaseHref = '' ;
28
29FCKConfig.FullPage = false ;
30
31FCKConfig.Debug = false ;
32FCKConfig.AllowQueryStringDebug = true ;
33
34FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
35
36FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
37
38// FCKConfig.Plugins.Add( 'placeholder', 'de,en,fr,it,pl' ) ;
39
40FCKConfig.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
45FCKConfig.AutoDetectLanguage    = true ;
46FCKConfig.DefaultLanguage               = 'en' ;
47FCKConfig.ContentLangDirection  = 'ltr' ;
48
49FCKConfig.EnableXHTML           = true ;        // Unsupported: Do not change.
50FCKConfig.EnableSourceXHTML     = true ;        // Unsupported: Do not change.
51
52FCKConfig.ProcessHTMLEntities   = true ;
53FCKConfig.IncludeLatinEntities  = true ;
54FCKConfig.IncludeGreekEntities  = true ;
55
56FCKConfig.FillEmptyBlocks       = true ;
57
58FCKConfig.FormatSource          = true ;
59FCKConfig.FormatOutput          = true ;
60FCKConfig.FormatIndentator      = '    ' ;
61
62FCKConfig.ForceStrongEm = true ;
63FCKConfig.GeckoUseSPAN  = true ;
64FCKConfig.StartupFocus  = false ;
65FCKConfig.ForcePasteAsPlainText = false ;
66FCKConfig.AutoDetectPasteFromWord = true ;      // IE only.
67FCKConfig.ForceSimpleAmpersand  = false ;
68FCKConfig.TabSpaces             = 0 ;
69FCKConfig.ShowBorders   = true ;
70FCKConfig.UseBROnCarriageReturn = false ;       // IE only.
71FCKConfig.ToolbarStartExpanded  = true ;
72FCKConfig.ToolbarCanCollapse    = true ;
73FCKConfig.IEForceVScroll = false ;
74FCKConfig.IgnoreEmptyParagraphValue = true ;
75FCKConfig.PreserveSessionOnFileBrowser = false ;
76FCKConfig.FloatingPanelsZIndex = 10000 ;
77
78FCKConfig.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
94FCKConfig.ToolbarSets["Basic"] = [
95        ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
96] ;
97
98FCKConfig.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
113FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
114
115FCKConfig.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
117FCKConfig.FontNames             = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
118FCKConfig.FontSizes             = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
119FCKConfig.FontFormats   = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
120
121FCKConfig.StylesXmlPath         = FCKConfig.EditorPath + 'fckstyles.xml' ;
122FCKConfig.TemplatesXmlPath      = FCKConfig.EditorPath + 'fcktemplates.xml' ;
123
124FCKConfig.SpellChecker                  = 'ieSpell' ;   // 'ieSpell' | 'SpellerPages'
125FCKConfig.IeSpellDownloadUrl    = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
126
127FCKConfig.MaxUndoLevels = 15 ;
128
129FCKConfig.DisableImageHandles = false ;
130FCKConfig.DisableTableHandles = false ;
131
132FCKConfig.LinkDlgHideTarget             = false ;
133FCKConfig.LinkDlgHideAdvanced   = false ;
134
135FCKConfig.ImageDlgHideLink              = false ;
136FCKConfig.ImageDlgHideAdvanced  = false ;
137
138FCKConfig.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.
147var _FileBrowserLanguage        = 'jsp' ;       // asp | aspx | cfm | lasso | perl | php | py
148var _QuickUploadLanguage        = 'jsp' ;       // asp | aspx | cfm | lasso | php
149
150var _StartFolderImages  = "images";
151var _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").
155var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
156
157FCKConfig.LinkBrowser = true ;
158FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector' ;
159FCKConfig.LinkBrowserWindowWidth        = FCKConfig.ScreenWidth * 0.7 ;         // 70%
160FCKConfig.LinkBrowserWindowHeight       = FCKConfig.ScreenHeight * 0.7 ;        // 70%
161
162FCKConfig.ImageBrowser = true ;
163FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&CurrentFolder=' + _StartFolderImages + '&Connector=connectors/' + _FileBrowserLanguage + '/connector' ;
164FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;      // 70% ;
165FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;     // 70% ;
166
167FCKConfig.FlashBrowser = true ;
168FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&CurrentFolder=' + _StartFolderFlash + '&Connector=connectors/' + _FileBrowserLanguage + '/connector' ;
169FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;      //70% ;
170FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;     //70% ;
171
172FCKConfig.LinkUpload = true ;
173FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
174FCKConfig.LinkUploadAllowedExtensions   = "" ;                  // empty for all
175FCKConfig.LinkUploadDeniedExtensions    = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ;  // empty for no one
176
177FCKConfig.ImageUpload = true ;
178FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
179FCKConfig.ImageUploadAllowedExtensions  = ".(jpg|gif|jpeg|png)$" ;              // empty for all
180FCKConfig.ImageUploadDeniedExtensions   = "" ;                                                  // empty for no one
181
182FCKConfig.FlashUpload = true ;
183FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
184FCKConfig.FlashUploadAllowedExtensions  = ".(swf|fla)$" ;               // empty for all
185FCKConfig.FlashUploadDeniedExtensions   = "" ;                                  // empty for no one
186
187FCKConfig.SmileyPath    = FCKConfig.BasePath + 'images/smiley/msn/' ;
188FCKConfig.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'] ;
189FCKConfig.SmileyColumns = 8 ;
190FCKConfig.SmileyWindowWidth             = 320 ;
191FCKConfig.SmileyWindowHeight    = 240 ;
192
193if( window.console ) window.console.log( 'Config is loaded!' ) ;        // @Packager.Compactor.RemoveLine
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy