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