fckconfig.js
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:9k
源码类别:

Jsp/Servlet

开发平台:

Java

  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.  * File Name: fckconfig.js
  12.  *  Editor configuration settings.
  13.  *  See the documentation for more info.
  14.  * 
  15.  * File Authors:
  16.  *  Frederico Caldeira Knabben (fredck@fckeditor.net)
  17.  */
  18. FCKConfig.CustomConfigurationsPath = '' ;
  19. FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
  20. FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
  21. FCKConfig.BaseHref = '' ;
  22. FCKConfig.FullPage = false ;
  23. FCKConfig.Debug = false ;
  24. FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
  25. FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
  26. // FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
  27. FCKConfig.AutoDetectLanguage = true ;
  28. FCKConfig.DefaultLanguage = 'en' ;
  29. FCKConfig.ContentLangDirection = 'ltr' ;
  30. FCKConfig.EnableXHTML = true ; // Unsupported: Do not change.
  31. FCKConfig.EnableSourceXHTML = true ; // Unsupported: Do not change.
  32. FCKConfig.ProcessHTMLEntities = true ;
  33. FCKConfig.IncludeLatinEntities = true ;
  34. FCKConfig.IncludeGreekEntities = true ;
  35. FCKConfig.FillEmptyBlocks = true ;
  36. FCKConfig.FormatSource = true ;
  37. FCKConfig.FormatOutput = true ;
  38. FCKConfig.FormatIndentator = '    ' ;
  39. FCKConfig.GeckoUseSPAN = true ;
  40. FCKConfig.StartupFocus = false ;
  41. FCKConfig.ForcePasteAsPlainText = false ;
  42. FCKConfig.ForceSimpleAmpersand = false ;
  43. FCKConfig.TabSpaces = 0 ;
  44. FCKConfig.ShowBorders = true ;
  45. FCKConfig.UseBROnCarriageReturn = false ;
  46. FCKConfig.ToolbarStartExpanded = true ;
  47. FCKConfig.ToolbarCanCollapse = true ;
  48. FCKConfig.IEForceVScroll = false ;
  49. FCKConfig.IgnoreEmptyParagraphValue = true ;
  50. FCKConfig.ToolbarSets["Default"] = [
  51. ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
  52. ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
  53. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  54. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
  55. ['OrderedList','UnorderedList','-','Outdent','Indent'],
  56. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
  57. ['Link','Unlink','Anchor'],
  58. ['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey'],
  59. ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
  60. '/',
  61. ['Style','FontFormat','FontName','FontSize'],
  62. ['TextColor','BGColor'],
  63. ['About']
  64. ] ;
  65. FCKConfig.ToolbarSets["Basic"] = [
  66. ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
  67. ] ;
  68. FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
  69. 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' ;
  70. FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
  71. FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
  72. FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
  73. FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ;
  74. FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ;
  75. FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages'
  76. FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
  77. FCKConfig.MaxUndoLevels = 15 ;
  78. FCKConfig.DisableImageHandles = false ;
  79. FCKConfig.DisableTableHandles = false ;
  80. FCKConfig.LinkDlgHideTarget = false ;
  81. FCKConfig.LinkDlgHideAdvanced = false ;
  82. FCKConfig.ImageDlgHideLink = false ;
  83. FCKConfig.ImageDlgHideAdvanced = false ;
  84. FCKConfig.FlashDlgHideAdvanced = false ;
  85. FCKConfig.LinkBrowser = true ;
  86. FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp' ;
  87. //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/CustomFiles/' ;
  88. // ASP.Net // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx' ;
  89. // ColdFusion // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm' ;
  90. // Perl // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/perl/connector.cgi' ;
  91. // PHP // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;
  92. // PHP - mcpuk // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ;
  93. FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70%
  94. FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70%
  95. FCKConfig.ImageBrowser = true ;
  96. FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/asp/connector.asp' ;
  97. // ASP.Net // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx' ;
  98. // ColdFusion // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/cfm/connector.cfm' ;
  99. // Perl // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/perl/connector.cgi' ;
  100. // PHP // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
  101. // PHP - mcpuk // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
  102. FCKConfig.ImageBrowserWindowWidth  = screen.width * 0.7 ; // 70% ;
  103. FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ;
  104. FCKConfig.FlashBrowser = true ;
  105. FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/asp/connector.asp' ;
  106. // ASP.Net // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/aspx/connector.aspx' ;
  107. // ColdFusion // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/cfm/connector.cfm' ;
  108. // Perl // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/perl/connector.cgi' ;
  109. // PHP // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php' ;
  110. // PHP - mcpuk // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Flash&Connector=connectors/php/connector.php' ;
  111. FCKConfig.FlashBrowserWindowWidth  = screen.width * 0.7 ; //70% ;
  112. FCKConfig.FlashBrowserWindowHeight = screen.height * 0.7 ; //70% ;
  113. FCKConfig.LinkUpload = true ;
  114. FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/asp/upload.asp' ;
  115. // PHP // FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php' ;
  116. FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all
  117. FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one
  118. FCKConfig.ImageUpload = true ;
  119. FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/asp/upload.asp?Type=Image' ;
  120. // PHP // FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Image' ;
  121. FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all
  122. FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
  123. FCKConfig.FlashUpload = true ;
  124. FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/asp/upload.asp?Type=Flash' ;
  125. // PHP // FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Flash' ;
  126. FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all
  127. FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one
  128. FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ;
  129. 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'] ;
  130. FCKConfig.SmileyColumns = 8 ;
  131. FCKConfig.SmileyWindowWidth = 320 ;
  132. FCKConfig.SmileyWindowHeight = 240 ;
  133. if( window.console ) window.console.log( 'Config is loaded!' ) ; // @Packager.Compactor.RemoveLine