~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/web/static/htdocs/applets/moinfckconfig.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * FCKeditor - Configuration for usage within MoinMoin wiki engine
3
 
 */
4
 
 
5
 
FCKConfig.Debug = false ;
6
 
 
7
 
FCKConfig.StylesXmlPath = '../../moinfckstyles.xml' ;
8
 
 
9
 
FCKConfig.EnableXHTML = true ;
10
 
FCKConfig.EnableSourceXHTML = true ;
11
 
 
12
 
FCKConfig.FillEmptyBlocks = false ;
13
 
 
14
 
FCKConfig.FormatSource = true ;
15
 
FCKConfig.FormatOutput = false ;
16
 
 
17
 
FCKConfig.GeckoUseSPAN = false ;
18
 
FCKConfig.IEForceVScroll = true ;
19
 
 
20
 
FCKConfig.StartupFocus = true ;
21
 
 
22
 
FCKConfig.ForcePasteAsPlainText = false ;
23
 
FCKConfig.TabSpaces = 0 ;
24
 
FCKConfig.ShowBorders = true ;
25
 
 
26
 
// when true, IE has problems selecting a line of text and tends to select a whole paragraph.
27
 
FCKConfig.UseBROnCarriageReturn = false ;
28
 
 
29
 
FCKConfig.ToolbarStartExpanded = true ;
30
 
FCKConfig.ToolbarCanCollapse = false ;
31
 
 
32
 
FCKConfig.ToolbarSets["MoinDefault"] = [
33
 
 ['PasteText','PasteWord'],
34
 
 ['Undo','Redo'], ['Find','Replace'],
35
 
 ['MoinFormat'],
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'],
42
 
 ['Macro'],
43
 
 ['Source']
44
 
] ;
45
 
 
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'],
54
 
 ['Source', 'Macro']
55
 
] ;
56
 
 
57
 
 
58
 
 
59
 
FCKConfig.ContextMenu = ['Generic','Link','Image', 'NumberedList','TableCell','Table'] ;
60
 
 
61
 
FCKConfig.LinkBrowser = false ;
62
 
FCKConfig.LinkDlgHideTarget = true ;
63
 
FCKConfig.LinkDlgHideAdvanced = true ;
64
 
 
65
 
FCKConfig.ImageBrowser = false ;
66
 
FCKConfig.ImageDlgHideLink = true ;
67
 
FCKConfig.ImageDlgHideAdvanced = true ;
68
 
 
69
 
/*
70
 
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
71
 
*/
72
 
/*
73
 
FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
74
 
*/
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' );
85
 
 
86
 
/* The list of the smiley images. MUST be done from here, auto-generating in MoinMoin-Code does not work! */
87
 
 
88
 
FCKConfig.SmileyImages = [
89
 
'alert.png', 
90
 
'angry.png', 
91
 
'attention.png', 
92
 
'biggrin.png', 
93
 
'checkmark.png', 
94
 
'devil.png', 
95
 
'frown.png', 
96
 
'icon-error.png', 
97
 
'icon-info.png', 
98
 
'idea.png', 
99
 
'ohwell.png', 
100
 
'prio1.png', 
101
 
'prio2.png', 
102
 
'prio3.png', 
103
 
'redface.png', 
104
 
'sad.png', 
105
 
'smile.png', 
106
 
'smile2.png', 
107
 
'smile3.png', 
108
 
'smile4.png', 
109
 
'star_off.png', 
110
 
'star_on.png', 
111
 
'thumbs-up.png', 
112
 
'tired.png', 
113
 
'tongue.png'
114
 
] ;
115
 
 
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' : '/!\\',
120
 
        'angry.png' : 'X-(', 
121
 
        'attention.png' : '<!>', 
122
 
        'biggrin.png' : ':D', 
123
 
        'checkmark.png' : '(./)', 
124
 
        'devil.png' : '>:>', 
125
 
        'frown.png' : '<:(', 
126
 
        'icon-error.png' : '{X}', 
127
 
        'icon-info.png' : '{i}', 
128
 
        'idea.png' : '(!)', 
129
 
        'ohwell.png' : ':\\', 
130
 
        'prio1.png' : '{1}', 
131
 
        'prio2.png' : '{2}', 
132
 
        'prio3.png' : '{3}', 
133
 
        'redface.png' : ':o', 
134
 
        'sad.png' : ':(', 
135
 
        'smile.png' : ':)', 
136
 
        'smile2.png' : 'B)', 
137
 
        'smile3.png' : ':))', 
138
 
        'smile4.png' : ';)', 
139
 
        'star_off.png' : '{o}', 
140
 
        'star_on.png' : '{*}', 
141
 
        'thumbs-up.png' : '{OK}', 
142
 
        'tired.png' : '|)', 
143
 
        'tongue.png' : ':-?'
144
 
};
145
 
 
146
 
 
147
 
FCKConfig.CustomStyles =
148
 
{
149
 
        'Red Title'     : { Element : 'h3', Styles : { 'color' : 'Red' } }
150
 
};
151
 
 
152
 
// Do not add, rename or remove styles here. Only apply definition changes.
153
 
FCKConfig.CoreStyles =
154
 
{
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' },
162
 
 
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' },
174
 
 
175
 
        // Other formatting features.
176
 
        'FontFace' :
177
 
        {
178
 
                Element         : 'span',
179
 
                Styles          : { 'font-family' : '#("Font")' },
180
 
                Overrides       : [ { Element : 'font', Attributes : { 'face' : null } } ]
181
 
        },
182
 
 
183
 
        'Size' :
184
 
        {
185
 
                Element         : 'span',
186
 
                Styles          : { 'font-size' : '#("Size","fontSize")' },
187
 
                Overrides       : [ { Element : 'font', Attributes : { 'size' : null } } ]
188
 
        },
189
 
 
190
 
        'Color' :
191
 
        {
192
 
                Element         : 'span',
193
 
                Styles          : { 'color' : '#("Color","color")' },
194
 
                Overrides       : [ { Element : 'font', Attributes : { 'color' : null } } ]
195
 
        },
196
 
 
197
 
        'BackColor'             : { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } },
198
 
 
199
 
        'SelectionHighlight' : { Element : 'span', Styles : { 'background-color' : 'navy', 'color' : 'white' } }
200
 
};