温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:博客源代码(课程设计,3层架构)
当前文件:
MVCBlog/fckeditor/fckconfig.js,打开代码结构图
MVCBlog/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://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Configurations_Settings 25
*/ 26
27
FCKConfig.CustomConfigurationsPath = '' ; 28
29
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; 30
FCKConfig.EditorAreaStyles = '' ; 31
FCKConfig.ToolbarComboPreviewCSS = '' ; 32
33
FCKConfig.DocType = '' ; 34
35
FCKConfig.BaseHref = '' ; 36
37
FCKConfig.FullPage = false ; 38
39
// The following option determines whether the "Show Blocks" feature is enabled or not at startup. 40
FCKConfig.StartupShowBlocks = false ; 41
42
FCKConfig.Debug = false ; 43
FCKConfig.AllowQueryStringDebug = true ; 44
45
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; 46
FCKConfig.SkinEditorCSS = '' ; // FCKConfig.SkinPath + "|<minified css>" ; 47
FCKConfig.SkinDialogCSS = '' ; // FCKConfig.SkinPath + "|<minified css>" ; 48
49
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ; 50
51
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; 52
53
// FCKConfig.Plugins.Add( 'autogrow' ) ; 54
// FCKConfig.Plugins.Add( 'dragresizetable' ); 55
FCKConfig.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
61
FCKConfig.AutoDetectLanguage = true ; 62
FCKConfig.DefaultLanguage = 'zh-cn' ; 63
64
FCKConfig.ContentLangDirection = 'ltr' ; 65
66
FCKConfig.ProcessHTMLEntities = true ; 67
FCKConfig.IncludeLatinEntities = true ; 68
FCKConfig.IncludeGreekEntities = true ; 69
70
FCKConfig.ProcessNumericEntities = false ; 71
72
FCKConfig.AdditionalNumericEntities = '' ; // Single Quote: "'" 73
74
FCKConfig.FillEmptyBlocks = true ; 75
76
FCKConfig.FormatSource = true ; 77
FCKConfig.FormatOutput = true ; 78
FCKConfig.FormatIndentator = ' ' ; 79
80
FCKConfig.StartupFocus = false ; 81
FCKConfig.ForcePasteAsPlainText = false ; 82
FCKConfig.AutoDetectPasteFromWord = true ; // IE only. 83
FCKConfig.ShowDropDialog = true ; 84
FCKConfig.ForceSimpleAmpersand = false ; 85
FCKConfig.TabSpaces = 1 ;//允许用TAB 86
FCKConfig.ShowBorders = true ; 87
FCKConfig.SourcePopup = false ; 88
FCKConfig.ToolbarStartExpanded = true ; 89
FCKConfig.ToolbarCanCollapse = false ; 90
FCKConfig.IgnoreEmptyParagraphValue = true ; 91
FCKConfig.PreserveSessionOnFileBrowser = false ; 92
FCKConfig.FloatingPanelsZIndex = 10000 ; 93
FCKConfig.HtmlEncodeOutput = false ; 94
95
FCKConfig.TemplateReplaceAll = true ; 96
FCKConfig.TemplateReplaceCheckbox = true ; 97
98
FCKConfig.ToolbarLocation = 'In' ; 99
100
FCKConfig.ToolbarSets["Default"] = [ 101
102
['Bold','Italic','Underline'], 103
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'], 104
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], 105
['Link','Unlink','Anchor'], 106
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], 107
'/', 108
['Style','FontFormat','FontName','FontSize'], 109
['TextColor','BGColor'] // No comma for the last row. 110
] ; 111
112
FCKConfig.ToolbarSets["Basic"] = [ 113
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] 114
] ; 115
116
FCKConfig.EnterMode = 'p' ; // p | div | br 117
FCKConfig.ShiftEnterMode = 'br' ; // p | div | br 118
119
FCKConfig.Keystrokes = [ 120
[ CTRL + 65 /*A*/, true ], 121
[ CTRL + 67 /*C*/, true ], 122
[ CTRL + 70 /*F*/, true ], 123
[ CTRL + 83 /*S*/, true ], 124
[ CTRL + 84 /*T*/, true ], 125
[ CTRL + 88 /*X*/, true ], 126
[ CTRL + 86 /*V*/, 'Paste' ], 127
[ SHIFT + 45 /*INS*/, 'Paste' ], 128
[ CTRL + 88 /*X*/, 'Cut' ], 129
[ SHIFT + 46 /*DEL*/, 'Cut' ], 130
[ CTRL + 90 /*Z*/, 'Undo' ], 131
[ CTRL + 89 /*Y*/, 'Redo' ], 132
[ CTRL + SHIFT + 90 /*Z*/, 'Redo' ], 133
[ CTRL + 76 /*L*/, 'Link' ], 134
[ CTRL + 66 /*B*/, 'Bold' ], 135
[ CTRL + 73 /*I*/, 'Italic' ], 136
[ CTRL + 85 /*U*/, 'Underline' ], 137
[ CTRL + SHIFT + 83 /*S*/, 'Save' ], 138
[ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ] 139
] ; 140
FCKConfig.FontNames = '宋体;楷体_GB2312;黑体;隶书;Arial;Times New Roman' ; 141
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ; 142
FCKConfig.BrowserContextMenuOnCtrl = false ; 143
144
FCKConfig.EnableMoreFontColors = true ; 145
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' ; 146
147
FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ; 148
149
FCKConfig.FontSizes = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ; 150
151
FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; 152
FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; 153
154
FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' 155
FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/download.php' ; 156
FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ; // Available extension: .php .cfm .pl 157
FCKConfig.FirefoxSpellChecker = false ; 158
159
FCKConfig.MaxUndoLevels = 15 ; 160
161
FCKConfig.DisableObjectResizing = false ; 162
FCKConfig.DisableFFTableHandles = true ; 163
164
FCKConfig.LinkDlgHideTarget = false ; 165
FCKConfig.LinkDlgHideAdvanced = false ; 166
167
FCKConfig.ImageDlgHideLink = false ; 168
FCKConfig.ImageDlgHideAdvanced = false ; 169
170
FCKConfig.FlashDlgHideAdvanced = false ; 171
172
FCKConfig.ProtectedTags = '' ; 173
174
// This will be applied to the body element of the editor 175
FCKConfig.BodyId = '' ; 176
FCKConfig.BodyClass = '' ; 177
178
FCKConfig.DefaultStyleLabel = '' ; 179
FCKConfig.DefaultFontFormatLabel = '' ; 180
FCKConfig.DefaultFontLabel = '' ; 181
FCKConfig.DefaultFontSizeLabel = '' ; 182
183
FCKConfig.DefaultLinkTarget = '' ; 184
185
// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word 186
FCKConfig.CleanWordKeepsStructure = false ; 187
188
// Only inline elements are valid. 189
FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ; 190
191
// Attributes that will be removed 192
FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,hspace,valign' ; 193
194
FCKConfig.CustomStyles = 195
{ 196
'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } } 197
}; 198
199
// Do not add, rename or remove styles here. Only apply definition changes. 200
FCKConfig.CoreStyles = 201
{ 202
// Basic Inline Styles. 203
'Bold' : { Element : 'strong', Overrides : 'b' }, 204
'Italic' : { Element : 'em', Overrides : 'i' }, 205
'Underline' : { Element : 'u' }, 206
'StrikeThrough' : { Element : 'strike' }, 207
'Subscript' : { Element : 'sub' }, 208
'Superscript' : { Element : 'sup' }, 209
210
// Basic Block Styles (Font Format Combo). 211
'p' : { Element : 'p' }, 212
'div' : { Element : 'div' }, 213
'pre' : { Element : 'pre' }, 214
'address' : { Element : 'address' }, 215
'h1' : { Element : 'h1' }, 216
'h2' : { Element : 'h2' }, 217
'h3' : { Element : 'h3' }, 218
'h4' : { Element : 'h4' }, 219
'h5' : { Element : 'h5' }, 220
'h6' : { Element : 'h6' }, 221
222
// Other formatting features. 223
'FontFace' : 224
{ 225
Element : 'span', 226
Styles : { 'font-family' : '#("Font")' }, 227
Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ] 228
}, 229
230
'Size' : 231
{ 232
Element : 'span', 233
Styles : { 'font-size' : '#("Size","fontSize")' }, 234



* FCKeditor - The text editor for Internet - http://www.fckeditor.net

}