[ Index ] |
|
Code source de GeekLog 1.4.1 |
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 * 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 = '' ; 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 FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ; 36 37 FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; 38 39 FCKConfig.Plugins.Add( 'autogrow' ) ; 40 FCKConfig.AutoGrowMax = 400 ; 41 42 FCKConfig.ProtectedSource.Add( /<script[\s\S]*?<\/script>/gi ) ; // <SCRIPT> tags. 43 // FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> 44 // FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code 45 // FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> 46 47 FCKConfig.AutoDetectLanguage = true ; 48 FCKConfig.DefaultLanguage = 'en' ; 49 FCKConfig.ContentLangDirection = 'ltr' ; 50 51 FCKConfig.ProcessHTMLEntities = true ; 52 FCKConfig.IncludeLatinEntities = true ; 53 FCKConfig.IncludeGreekEntities = true ; 54 55 FCKConfig.FillEmptyBlocks = true ; 56 57 FCKConfig.FormatSource = true ; 58 FCKConfig.FormatOutput = true ; 59 FCKConfig.FormatIndentator = ' ' ; 60 61 FCKConfig.ForceStrongEm = true ; 62 FCKConfig.GeckoUseSPAN = false ; 63 FCKConfig.StartupFocus = false ; 64 FCKConfig.ForcePasteAsPlainText = false ; 65 FCKConfig.AutoDetectPasteFromWord = true ; // IE only. 66 FCKConfig.ForceSimpleAmpersand = false ; 67 FCKConfig.TabSpaces = 0 ; 68 FCKConfig.ShowBorders = true ; 69 FCKConfig.SourcePopup = false ; 70 FCKConfig.UseBROnCarriageReturn = false ; // IE only. 71 FCKConfig.ToolbarStartExpanded = true ; 72 FCKConfig.ToolbarCanCollapse = true ; 73 FCKConfig.IgnoreEmptyParagraphValue = true ; 74 FCKConfig.PreserveSessionOnFileBrowser = false ; 75 FCKConfig.FloatingPanelsZIndex = 10000 ; 76 77 FCKConfig.ToolbarLocation = 'In' ; 78 79 FCKConfig.ToolbarSets["Default"] = [ 80 ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], 81 ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], 82 ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], 83 ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], 84 ['Smiley','SpecialChar','PageBreak','UniversalKey'], ['TextColor','BGColor'], 85 ['Image','Flash','Table','Rule'], 86 '/', 87 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], 88 ['OrderedList','UnorderedList','-','Outdent','Indent'], 89 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], 90 ['Link','Unlink','Anchor'],['FitWindow','-','About'], 91 '/', 92 ['Style','FontFormat','FontName','FontSize'] 93 ] ; 94 95 FCKConfig.ToolbarSets["Basic"] = [ 96 ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] 97 ] ; 98 99 FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ; 100 101 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' ; 102 103 FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; 104 FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ; 105 FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ; 106 107 FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; 108 FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; 109 110 FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' 111 FCKConfig.IeSpellDownloadUrl = 'http://iespell.huhbw.com/ieSpellSetup220647.exe' ; 112 113 FCKConfig.MaxUndoLevels = 15 ; 114 115 FCKConfig.DisableObjectResizing = false ; 116 FCKConfig.DisableFFTableHandles = true ; 117 118 FCKConfig.LinkDlgHideTarget = false ; 119 FCKConfig.LinkDlgHideAdvanced = false ; 120 121 FCKConfig.ImageDlgHideLink = false ; 122 FCKConfig.ImageDlgHideAdvanced = false ; 123 124 FCKConfig.FlashDlgHideAdvanced = false ; 125 126 // The following value defines which File Browser connector and Quick Upload 127 // "uploader" to use. It is valid for the default implementaion and it is here 128 // just to make this configuration file cleaner. 129 // It is not possible to change this value using an external file or even 130 // inline when creating the editor instance. In that cases you must set the 131 // values of LinkBrowserURL, ImageBrowserURL and so on. 132 // Custom implementations should just ignore it. 133 var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py 134 var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php 135 136 // Don't care about the following line. It just calculates the correct connector 137 // extension to use for the default File Browser (Perl uses "cgi"). 138 var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; 139 140 FCKConfig.LinkBrowser = true ; 141 FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; 142 FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% 143 FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% 144 145 FCKConfig.ImageBrowser = true ; 146 FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; 147 FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; 148 FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; 149 150 FCKConfig.FlashBrowser = true ; 151 FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; 152 FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; 153 FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; 154 155 FCKConfig.LinkUpload = true ; 156 FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ; 157 FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all 158 FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one 159 160 FCKConfig.ImageUpload = true ; 161 FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ; 162 FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all 163 FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one 164 165 FCKConfig.FlashUpload = true ; 166 FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + _QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ; 167 FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all 168 FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one 169 170 FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; 171 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'] ; 172 FCKConfig.SmileyColumns = 8 ; 173 FCKConfig.SmileyWindowWidth = 320 ; 174 FCKConfig.SmileyWindowHeight = 240 ;
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |