fckconfig.js
Upload User: glass0516
Upload Date: 2017-03-12
Package Size: 4886k
Code Size: 8k
Development Platform:

C#

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