source: branches/1.2/workflow/js/fckeditor/fckconfig.js @ 1349

Revision 1349, 10.4 KB checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
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 * Editor configuration settings.
22 *
23 * Follow this link for more information:
24 * http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Configurations_Settings
25 */
26
27// Disable the custom Enter Key Handler. This option will be removed in version 2.5.
28FCKConfig.DisableEnterKeyHandler = false ;
29
30FCKConfig.CustomConfigurationsPath = '' ;
31
32FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
33FCKConfig.ToolbarComboPreviewCSS = '' ;
34
35FCKConfig.DocType = '' ;
36
37FCKConfig.BaseHref = '' ;
38
39FCKConfig.FullPage = false ;
40
41FCKConfig.Debug = false ;
42FCKConfig.AllowQueryStringDebug = true ;
43
44FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
45FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;
46
47FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
48
49// FCKConfig.Plugins.Add( 'autogrow' ) ;
50FCKConfig.AutoGrowMax = 400 ;
51
52// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;   // ASP style server side code <%...%>
53// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
54// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;        // ASP.Net style tags <asp:control>
55
56FCKConfig.AutoDetectLanguage    = true ;
57FCKConfig.DefaultLanguage               = 'en' ;
58FCKConfig.ContentLangDirection  = 'ltr' ;
59
60FCKConfig.ProcessHTMLEntities   = true ;
61FCKConfig.IncludeLatinEntities  = true ;
62FCKConfig.IncludeGreekEntities  = true ;
63
64FCKConfig.ProcessNumericEntities = false ;
65
66FCKConfig.AdditionalNumericEntities = ''  ;             // Single Quote: "'"
67
68FCKConfig.FillEmptyBlocks       = true ;
69
70FCKConfig.FormatSource          = true ;
71FCKConfig.FormatOutput          = true ;
72FCKConfig.FormatIndentator      = '    ' ;
73
74FCKConfig.ForceStrongEm = true ;
75FCKConfig.GeckoUseSPAN  = false ;
76FCKConfig.StartupFocus  = false ;
77FCKConfig.ForcePasteAsPlainText = false ;
78FCKConfig.AutoDetectPasteFromWord = true ;      // IE only.
79FCKConfig.ForceSimpleAmpersand  = false ;
80FCKConfig.TabSpaces             = 0 ;
81FCKConfig.ShowBorders   = true ;
82FCKConfig.SourcePopup   = false ;
83FCKConfig.ToolbarStartExpanded  = true ;
84FCKConfig.ToolbarCanCollapse    = true ;
85FCKConfig.IgnoreEmptyParagraphValue = true ;
86FCKConfig.PreserveSessionOnFileBrowser = false ;
87FCKConfig.FloatingPanelsZIndex = 10000 ;
88
89FCKConfig.TemplateReplaceAll = true ;
90FCKConfig.TemplateReplaceCheckbox = true ;
91
92FCKConfig.ToolbarLocation = 'In' ;
93
94FCKConfig.ToolbarSets["Default"] = [
95        ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
96        ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
97        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
98        ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
99        '/',
100        ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
101        ['OrderedList','UnorderedList','-','Outdent','Indent'],
102        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
103        ['Link','Unlink','Anchor'],
104        ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
105        '/',
106        ['Style','FontFormat','FontName','FontSize'],
107        ['TextColor','BGColor'],
108        ['FitWindow','-','About']
109] ;
110
111FCKConfig.ToolbarSets["TextFormatting"] = [
112        ['DocProps','-','NewPage','Preview','-','Templates'],
113        ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
114        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
115        '/',
116        ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
117        ['OrderedList','UnorderedList','-','Outdent','Indent'],
118        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
119        ['Link','Unlink','Anchor'],
120        ['Image','Table','Rule','Smiley','SpecialChar','PageBreak'],
121        '/',
122        ['Style','FontFormat','FontName','FontSize'],
123        ['TextColor','BGColor'],
124        ['FitWindow','-','About']
125] ;
126
127FCKConfig.ToolbarSets["Basic"] = [
128        ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
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 + 70 /*F*/, true ],
138        [ CTRL + 83 /*S*/, true ],
139        [ CTRL + 88 /*X*/, true ],
140        [ CTRL + 86 /*V*/, 'Paste' ],
141        [ SHIFT + 45 /*INS*/, 'Paste' ],
142        [ CTRL + 90 /*Z*/, 'Undo' ],
143        [ CTRL + 89 /*Y*/, 'Redo' ],
144        [ CTRL + SHIFT + 90 /*Z*/, 'Redo' ],
145        [ CTRL + 76 /*L*/, 'Link' ],
146        [ CTRL + 66 /*B*/, 'Bold' ],
147        [ CTRL + 73 /*I*/, 'Italic' ],
148        [ CTRL + 85 /*U*/, 'Underline' ],
149        [ CTRL + SHIFT + 83 /*S*/, 'Save' ],
150        [ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ],
151        [ CTRL + 9 /*TAB*/, 'Source' ]
152] ;
153
154FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
155
156FCKConfig.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' ;
157
158FCKConfig.FontNames             = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
159FCKConfig.FontSizes             = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
160FCKConfig.FontFormats   = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
161
162FCKConfig.StylesXmlPath         = FCKConfig.EditorPath + 'fckstyles.xml' ;
163FCKConfig.TemplatesXmlPath      = FCKConfig.EditorPath + 'fcktemplates.xml' ;
164
165FCKConfig.SpellChecker                  = 'ieSpell' ;   // 'ieSpell' | 'SpellerPages'
166FCKConfig.IeSpellDownloadUrl    = 'http://www.iespell.com/download.php' ;
167FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;        // Available extension: .php .cfm .pl
168
169FCKConfig.MaxUndoLevels = 15 ;
170
171FCKConfig.DisableObjectResizing = false ;
172FCKConfig.DisableFFTableHandles = true ;
173
174FCKConfig.LinkDlgHideTarget             = false ;
175FCKConfig.LinkDlgHideAdvanced   = false ;
176
177FCKConfig.ImageDlgHideLink              = false ;
178FCKConfig.ImageDlgHideAdvanced  = false ;
179
180FCKConfig.FlashDlgHideAdvanced  = false ;
181
182FCKConfig.ProtectedTags = '' ;
183
184// This will be applied to the body element of the editor
185FCKConfig.BodyId = '' ;
186FCKConfig.BodyClass = '' ;
187
188// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word
189FCKConfig.CleanWordKeepsStructure = false ;
190
191// The following value defines which File Browser connector and Quick Upload
192// "uploader" to use. It is valid for the default implementaion and it is here
193// just to make this configuration file cleaner.
194// It is not possible to change this value using an external file or even
195// inline when creating the editor instance. In that cases you must set the
196// values of LinkBrowserURL, ImageBrowserURL and so on.
197// Custom implementations should just ignore it.
198var _FileBrowserLanguage        = 'asp' ;       // asp | aspx | cfm | lasso | perl | php | py
199var _QuickUploadLanguage        = 'asp' ;       // asp | aspx | cfm | lasso | php
200
201
202// Don't care about the following line. It just calculates the correct connector
203// extension to use for the default File Browser (Perl uses "cgi").
204var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
205
206FCKConfig.LinkBrowser = true ;
207FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
208FCKConfig.LinkBrowserWindowWidth        = FCKConfig.ScreenWidth * 0.7 ;         // 70%
209FCKConfig.LinkBrowserWindowHeight       = FCKConfig.ScreenHeight * 0.7 ;        // 70%
210
211FCKConfig.ImageBrowser = true ;
212FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
213FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;      // 70% ;
214FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;     // 70% ;
215
216FCKConfig.FlashBrowser = true ;
217FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
218FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;      //70% ;
219FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;     //70% ;
220
221FCKConfig.LinkUpload = true ;
222FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
223FCKConfig.LinkUploadAllowedExtensions   = "" ;                  // empty for all
224FCKConfig.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
225
226FCKConfig.ImageUpload = true ;
227FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
228FCKConfig.ImageUploadAllowedExtensions  = ".(jpg|gif|jpeg|png|bmp)$" ;          // empty for all
229FCKConfig.ImageUploadDeniedExtensions   = "" ;                                                  // empty for no one
230
231FCKConfig.FlashUpload = true ;
232FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
233FCKConfig.FlashUploadAllowedExtensions  = ".(swf|fla)$" ;               // empty for all
234FCKConfig.FlashUploadDeniedExtensions   = "" ;                                  // empty for no one
235
236FCKConfig.SmileyPath    = FCKConfig.BasePath + 'images/smiley/msn/' ;
237FCKConfig.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'] ;
238FCKConfig.SmileyColumns = 8 ;
239FCKConfig.SmileyWindowWidth             = 320 ;
240FCKConfig.SmileyWindowHeight    = 240 ;
Note: See TracBrowser for help on using the repository browser.