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