[ Index ]
 

Code source de FCKeditor 2.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/ -> fckconfig.js (source)

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


Généré le : Sun Feb 25 15:28:05 2007 par Balluche grâce à PHPXref 0.7