2
* FCKeditor - Configuration for usage within MoinMoin wiki engine
5
FCKConfig.Debug = false ;
7
FCKConfig.StylesXmlPath = '../../moinfckstyles.xml' ;
9
FCKConfig.EnableXHTML = true ;
10
FCKConfig.EnableSourceXHTML = true ;
12
FCKConfig.FillEmptyBlocks = false ;
14
FCKConfig.FormatSource = true ;
15
FCKConfig.FormatOutput = false ;
17
FCKConfig.GeckoUseSPAN = false ;
18
FCKConfig.IEForceVScroll = true ;
20
FCKConfig.StartupFocus = true ;
22
FCKConfig.ForcePasteAsPlainText = false ;
23
FCKConfig.TabSpaces = 0 ;
24
FCKConfig.ShowBorders = true ;
26
// when true, IE has problems selecting a line of text and tends to select a whole paragraph.
27
FCKConfig.UseBROnCarriageReturn = false ;
29
FCKConfig.ToolbarStartExpanded = true ;
30
FCKConfig.ToolbarCanCollapse = false ;
32
FCKConfig.ToolbarSets["MoinDefault"] = [
33
['PasteText','PasteWord'],
34
['Undo','Redo'], ['Find','Replace'],
36
// disabled some styles until IE endless loop is fixed:
37
//['Bold', 'Italic', 'Typewriter', 'Underline', 'StrikeThrough', '-', 'Big', 'Small', 'Superscript', 'Subscript'],
38
['Bold', 'Italic', 'Underline', 'StrikeThrough', 'RemoveFormat'],
39
['OrderedList','UnorderedList','-','Indent','Outdent'],
40
['Link','Unlink','Attachment','Image','Smiley'],
41
['Table','Rule','SpecialChar'],
46
FCKConfig.ToolbarSets["MoinBig"] = [
47
['SelectAll','Cut','Copy','Paste','PasteText','PasteWord'],
48
['Undo','Redo'], ['Find','Replace'],
49
['Link','Unlink','Image'],
50
['Table','Rule','Smiley','SpecialChar','UniversalKey'],
51
['OrderedList','UnorderedList','-','Indent','Outdent'],
52
['RemoveFormat'], ['MoinFormat'], ['Style'],
53
['Bold','Italic','Underline','StrikeThrough','-','Superscript','Subscript'],
59
FCKConfig.ContextMenu = ['Generic','Link','Image', 'NumberedList','TableCell','Table'] ;
61
FCKConfig.LinkBrowser = false ;
62
FCKConfig.LinkDlgHideTarget = true ;
63
FCKConfig.LinkDlgHideAdvanced = true ;
65
FCKConfig.ImageBrowser = false ;
66
FCKConfig.ImageDlgHideLink = true ;
67
FCKConfig.ImageDlgHideAdvanced = true ;
70
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
73
FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
75
FCKConfig.Plugins.Add( 'selection') ;
76
FCKConfig.Plugins.Add( 'moinbehaviour') ;
77
FCKConfig.Plugins.Add( 'restrict_actions' ) ;
78
FCKConfig.Plugins.Add( 'moinunlink' );
79
FCKConfig.Plugins.Add( 'macro', 'en,it' ) ;
80
FCKConfig.Plugins.Add( 'moinlink' ) ;
81
FCKConfig.Plugins.Add( 'moinattachment' ) ;
82
FCKConfig.Plugins.Add( 'moinformat' ) ;
83
FCKConfig.Plugins.Add( 'moinimage' ) ;
84
FCKConfig.Plugins.Add( 'smiley' );
86
/* The list of the smiley images. MUST be done from here, auto-generating in MoinMoin-Code does not work! */
88
FCKConfig.SmileyImages = [
116
// use smiley with this data mapping object. when insert smiley image with gui editor
117
// smiley plugin insert additional attribute (title, alt) with this data
118
FCKConfig.SmileyMap = {
119
'alert.png' : '/!\\',
121
'attention.png' : '<!>',
122
'biggrin.png' : ':D',
123
'checkmark.png' : '(./)',
126
'icon-error.png' : '{X}',
127
'icon-info.png' : '{i}',
129
'ohwell.png' : ':\\',
133
'redface.png' : ':o',
137
'smile3.png' : ':))',
139
'star_off.png' : '{o}',
140
'star_on.png' : '{*}',
141
'thumbs-up.png' : '{OK}',
147
FCKConfig.CustomStyles =
149
'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } }
152
// Do not add, rename or remove styles here. Only apply definition changes.
153
FCKConfig.CoreStyles =
155
// Basic Inline Styles.
156
'Bold' : { Element : 'strong', Overrides : 'b' },
157
'Italic' : { Element : 'em', Overrides : 'i' },
158
'Underline' : { Element : 'u' },
159
'StrikeThrough' : { Element : 'strike' },
160
'Subscript' : { Element : 'sub' },
161
'Superscript' : { Element : 'sup' },
163
// Basic Block Styles (Font Format Combo).
164
'p' : { Element : 'p' },
165
'div' : { Element : 'div' },
166
'pre' : { Element : 'pre' },
167
'address' : { Element : 'address' },
168
'h1' : { Element : 'h1' },
169
'h2' : { Element : 'h2' },
170
'h3' : { Element : 'h3' },
171
'h4' : { Element : 'h4' },
172
'h5' : { Element : 'h5' },
173
'h6' : { Element : 'h6' },
175
// Other formatting features.
179
Styles : { 'font-family' : '#("Font")' },
180
Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ]
186
Styles : { 'font-size' : '#("Size","fontSize")' },
187
Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ]
193
Styles : { 'color' : '#("Color","color")' },
194
Overrides : [ { Element : 'font', Attributes : { 'color' : null } } ]
197
'BackColor' : { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } },
199
'SelectionHighlight' : { Element : 'span', Styles : { 'background-color' : 'navy', 'color' : 'white' } }