fckconfig.js
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:10k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

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