fckconfig.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*
  2. * FCKeditor - The text editor for internet
  3. * Copyright (C) 2003-2004 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. *
  14. * Version: 2.0 RC2
  15. * Modified: 2004-12-17 08:14:33
  16. *
  17. * File Authors:
  18. * Frederico Caldeira Knabben (fredck@fckeditor.net)
  19. */
  20. // Custom Configurations (leave blank to ignore)
  21. FCKConfig.CustomConfigurationsPath = '' ;
  22. // Style File to be used in the editable area.
  23. FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
  24. // Enables the debug window
  25. FCKConfig.Debug = false ;
  26. // Set the path for the skin files to use.
  27. FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
  28. FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
  29. // Language settings
  30. FCKConfig.AutoDetectLanguage = true ;
  31. //FCKConfig.DefaultLanguage = FCKConfig.Language ;
  32. FCKConfig.DefaultLanguage = 'en' ;
  33. // Enable XHTML support
  34. FCKConfig.EnableXHTML = true ;
  35. FCKConfig.EnableSourceXHTML = true ;
  36. // Tells Gecko browsers to use SPAN instead of <B>, <I> and <U>.
  37. FCKConfig.GeckoUseSPAN = true ;
  38. // Force the editor to get the focus on startup (page load).
  39. FCKConfig.StartupFocus = true ;
  40. // Cut and Paste options
  41. FCKConfig.ForcePasteAsPlainText = false ;
  42. FCKConfig.ForceSimpleAmpersand = false ;
  43. FCKConfig.TabSpaces = 8 ;
  44. // When the user presses <ENTER> inserts a <BR> tag instead of a <P> (on IE).
  45. FCKConfig.UseBROnCarriageReturn = true ;
  46. // Link: Target Windows
  47. FCKConfig.LinkShowTargets = true ;
  48. FCKConfig.LinkTargets = '_blank;_parent;_self;_top' ;
  49. FCKConfig.LinkDefaultTarget = '' ;
  50. FCKConfig.ToolbarStartExpanded = true ;
  51. FCKConfig.ToolbarCanCollapse = true ;
  52. //##
  53. //## Toolbar Buttons Sets
  54. //##
  55. FCKConfig.ToolbarSets["Default"] = [
  56. ['-','NewPage','Preview'],
  57. ['Cut','Copy','Paste','PasteText','PasteWord','-','Print'],
  58. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  59. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
  60. ['OrderedList','UnorderedList','-','Outdent','Indent'],
  61. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
  62. ['Link','Unlink','Image'],
  63. ['Table','Rule','SpecialChar','Smiley'],
  64. ['FontFormat','FontName','FontSize'],
  65. ['TextColor','BGColor']
  66. ] ;
  67. FCKConfig.ToolbarSets["Basic"] = [
  68. ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
  69. ] ;
  70. // Font Colors
  71. 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' ;
  72. // Font Combos
  73. FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
  74. FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
  75. FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
  76. FCKConfig.StylesXmlPath = '../fckstyles.xml' ;
  77. // Link Browsing
  78. FCKConfig.LinkBrowser = false ;
  79. //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp" ;
  80. //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/CustomFiles/" ;
  81. //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx" ;
  82. //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/php/connector.php" ;
  83. FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70%
  84. FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70%
  85. // Link Upload
  86. FCKConfig.LinkUpload = false ;
  87. FCKConfig.LinkUploadURL = FCKConfig.BasePath + "filemanager/upload/aspx/upload.aspx" ;
  88. FCKConfig.LinkUploadWindowWidth = 300 ;
  89. FCKConfig.LinkUploadWindowHeight = 150 ;
  90. FCKConfig.LinkUploadAllowedExtensions = "*" ; // * or empty for all
  91. FCKConfig.LinkUploadDeniedExtensions = ".exe .asp .php .aspx .js .cfm .dll" ; // empty for none
  92. // Image Browsing
  93. FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all
  94. FCKConfig.ImageBrowser = false ;
  95. FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/asp/connector.asp" ;
  96. //FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx" ;
  97. //FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php" ;
  98. FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ;
  99. FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ;
  100. // Smiley Dialog
  101. FCKConfig.SmileyPath = FCKConfig.BasePath + "images/smiley/msn/" ;
  102. 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"] ;
  103. FCKConfig.SmileyColumns = 8 ;
  104. FCKConfig.SmileyWindowWidth = 320 ;
  105. FCKConfig.SmileyWindowHeight = 240 ;