[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/include/fckeditor/ -> fckconfig.js (source)

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


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7