您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->IFNuke(修改自DNN)网站源码>>Website/fckeditor/fckconfig.js>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:IFNuke(修改自DNN)网站源码
当前文件:文件类型 IFNuke/Website/fckeditor/fckconfig.js打开代码结构图
普通视图
		            
1/* 2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 3 * Copyright (C) 2003-2008 Frederico Caldeira Knabben 4 * 5 * == BEGIN LICENSE == 6 * 7 * Licensed under the terms of any of the following licenses at your 8 * choice: 9 * 10 * - GNU General Public License Version 2 or later (the "GPL") 11 * http://www.gnu.org/licenses/gpl.html 12 * 13 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 14 * http://www.gnu.org/licenses/lgpl.html 15 * 16 * - Mozilla Public License Version 1.1 or later (the "MPL") 17 * http://www.mozilla.org/MPL/MPL-1.1.html 18 * 19 * == END LICENSE == 20 * 21 * Editor configuration settings. 22 * 23 * Follow this link for more information: 24 * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options 25 */ 26 27FCKConfig.CustomConfigurationsPath = '' ; 28 29FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; 30FCKConfig.EditorAreaStyles = '' ; 31FCKConfig.ToolbarComboPreviewCSS = '' ; 32 33FCKConfig.DocType = '' ; 34 35FCKConfig.BaseHref = '' ; 36 37FCKConfig.FullPage = false ; 38 39// The following option determines whether the "Show Blocks" feature is enabled or not at startup. 40FCKConfig.StartupShowBlocks = false ; 41 42FCKConfig.Debug = false ; 43FCKConfig.AllowQueryStringDebug = true ; 44 45FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; 46FCKConfig.SkinEditorCSS = '' ; // FCKConfig.SkinPath + "|<minified css>" ; 47FCKConfig.SkinDialogCSS = '' ; // FCKConfig.SkinPath + "|<minified css>" ; 48 49FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ; 50 51FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; 52 53// FCKConfig.Plugins.Add( 'autogrow' ) ; 54// FCKConfig.Plugins.Add( 'dragresizetable' ); 55FCKConfig.AutoGrowMax = 400 ; 56 57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> 58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code 59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> 60 61FCKConfig.AutoDetectLanguage = true ; 62FCKConfig.DefaultLanguage = 'en' ; 63FCKConfig.ContentLangDirection = 'ltr' ; 64 65FCKConfig.ProcessHTMLEntities = true ; 66FCKConfig.IncludeLatinEntities = true ; 67FCKConfig.IncludeGreekEntities = true ; 68 69FCKConfig.ProcessNumericEntities = false ; 70 71FCKConfig.AdditionalNumericEntities = '' ; // Single Quote: "'" 72 73FCKConfig.FillEmptyBlocks = true ; 74 75FCKConfig.FormatSource = true ; 76FCKConfig.FormatOutput = true ; 77FCKConfig.FormatIndentator = ' ' ; 78 79FCKConfig.StartupFocus = false ; 80FCKConfig.ForcePasteAsPlainText = false ; 81FCKConfig.AutoDetectPasteFromWord = true ; // IE only. 82FCKConfig.ShowDropDialog = true ; 83FCKConfig.ForceSimpleAmpersand = false ; 84FCKConfig.TabSpaces = 0 ; 85FCKConfig.ShowBorders = true ; 86FCKConfig.SourcePopup = false ; 87FCKConfig.ToolbarStartExpanded = true ; 88FCKConfig.ToolbarCanCollapse = true ; 89FCKConfig.IgnoreEmptyParagraphValue = true ; 90FCKConfig.FloatingPanelsZIndex = 10000 ; 91FCKConfig.HtmlEncodeOutput = false ; 92 93FCKConfig.TemplateReplaceAll = true ; 94FCKConfig.TemplateReplaceCheckbox = true ; 95 96FCKConfig.ToolbarLocation = 'In' ; 97 98FCKConfig.ToolbarSets["Default"] = [ 99 ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], 100 ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], 101 ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], 102 ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], 103 '/', 104 ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], 105 ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'], 106 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], 107 ['Link','Unlink','Anchor'], 108 ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], 109 '/', 110 ['Style','FontFormat','FontName','FontSize'], 111 ['TextColor','BGColor'], 112 ['FitWindow','ShowBlocks','-','About'] // No comma for the last row. 113] ; 114 115FCKConfig.ToolbarSets["Basic"] = [ 116 ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] 117] ; 118 119FCKConfig.EnterMode = 'p' ; // p | div | br 120FCKConfig.ShiftEnterMode = 'br' ; // p | div | br 121 122FCKConfig.Keystrokes = [ 123 [ CTRL + 65 /*A*/, true ], 124 [ CTRL + 67 /*C*/, true ], 125 [ CTRL + 70 /*F*/, true ], 126 [ CTRL + 83 /*S*/, true ], 127 [ CTRL + 84 /*T*/, true ], 128 [ CTRL + 88 /*X*/, true ], 129 [ CTRL + 86 /*V*/, 'Paste' ], 130 [ CTRL + 45 /*INS*/, true ], 131 [ SHIFT + 45 /*INS*/, 'Paste' ], 132 [ CTRL + 88 /*X*/, 'Cut' ], 133 [ SHIFT + 46 /*DEL*/, 'Cut' ], 134 [ CTRL + 90 /*Z*/, 'Undo' ], 135 [ CTRL + 89 /*Y*/, 'Redo' ], 136 [ CTRL + SHIFT + 90 /*Z*/, 'Redo' ], 137 [ CTRL + 76 /*L*/, 'Link' ], 138 [ CTRL + 66 /*B*/, 'Bold' ], 139 [ CTRL + 73 /*I*/, 'Italic' ], 140 [ CTRL + 85 /*U*/, 'Underline' ], 141 [ CTRL + SHIFT + 83 /*S*/, 'Save' ], 142 [ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ] 143] ; 144 145FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ; 146FCKConfig.BrowserContextMenuOnCtrl = false ; 147 148FCKConfig.EnableMoreFontColors = true ; 149FCKConfig.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' ; 150 151FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ; 152FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; 153FCKConfig.FontSizes = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ; 154 155FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; 156FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; 157 158FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' 159FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/download.php' ; 160FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ; // Available extension: .php .cfm .pl 161FCKConfig.FirefoxSpellChecker = false ; 162 163FCKConfig.MaxUndoLevels = 15 ; 164 165FCKConfig.DisableObjectResizing = false ; 166FCKConfig.DisableFFTableHandles = true ; 167 168FCKConfig.LinkDlgHideTarget = false ; 169FCKConfig.LinkDlgHideAdvanced = false ; 170 171FCKConfig.ImageDlgHideLink = false ; 172FCKConfig.ImageDlgHideAdvanced = false ; 173 174FCKConfig.FlashDlgHideAdvanced = false ; 175 176FCKConfig.ProtectedTags = '' ; 177 178// This will be applied to the body element of the editor 179FCKConfig.BodyId = '' ; 180FCKConfig.BodyClass = '' ; 181 182FCKConfig.DefaultStyleLabel = '' ; 183FCKConfig.DefaultFontFormatLabel = '' ; 184FCKConfig.DefaultFontLabel = '' ; 185FCKConfig.DefaultFontSizeLabel = '' ; 186 187FCKConfig.DefaultLinkTarget = '' ; 188 189// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word 190FCKConfig.CleanWordKeepsStructure = false ; 191 192// Only inline elements are valid. 193FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ; 194 195// Attributes that will be removed 196FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,hspace,valign' ; 197 198FCKConfig.CustomStyles = 199{ 200 'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } } 201}; 202 203// Do not add, rename or remove styles here. Only apply definition changes. 204FCKConfig.CoreStyles = 205{ 206 // Basic Inline Styles. 207 'Bold' : { Element : 'strong', Overrides : 'b' }, 208 'Italic' : { Element : 'em', Overrides : 'i' }, 209 'Underline' : { Element : 'u' }, 210 'StrikeThrough' : { Element : 'strike' }, 211 'Subscript' : { Element : 'sub' }, 212 'Superscript' : { Element : 'sup' }, 213 214 // Basic Block Styles (Font Format Combo). 215 'p' : { Element : 'p' }, 216 'div' : { Element : 'div' }, 217 'pre' : { Element : 'pre' }, 218 'address' : { Element : 'address' }, 219 'h1' : { Element : 'h1' }, 220 'h2' : { Element : 'h2' }, 221 'h3' : { Element : 'h3' }, 222 'h4' : { Element : 'h4' }, 223 'h5' : { Element : 'h5' }, 224 'h6' : { Element : 'h6' }, 225 226 // Other formatting features. 227 'FontFace' :