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

« back to all changes in this revision

Viewing changes to wiki/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 = false ;
 
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
FCKConfig.ContextMenu = ['Generic','Link','Image', 'NumberedList','TableCell','Table'] ;
 
58
 
 
59
FCKConfig.LinkBrowser = false ;
 
60
FCKConfig.LinkDlgHideTarget = true ;
 
61
FCKConfig.LinkDlgHideAdvanced = true ;
 
62
 
 
63
FCKConfig.ImageBrowser = false ;
 
64
FCKConfig.ImageDlgHideLink = true ;
 
65
FCKConfig.ImageDlgHideAdvanced = true ;
 
66
 
 
67
/*
 
68
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
 
69
*/
 
70
/*
 
71
FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
 
72
*/
 
73
FCKConfig.Plugins.Add( 'selection') ;
 
74
FCKConfig.Plugins.Add( 'moinbehaviour') ;
 
75
FCKConfig.Plugins.Add( 'restrict_actions' ) ;
 
76
FCKConfig.Plugins.Add( 'moinunlink' );
 
77
FCKConfig.Plugins.Add( 'macro', 'en,it' ) ;
 
78
FCKConfig.Plugins.Add( 'moinlink' ) ;
 
79
FCKConfig.Plugins.Add( 'moinattachment' ) ;
 
80
FCKConfig.Plugins.Add( 'moinformat' ) ;
 
81
FCKConfig.Plugins.Add( 'moinimage' ) ;
 
82
 
 
83
/* The list of the smiley images. MUST be done from here, auto-generating in MoinMoin-Code does not work! */
 
84
 
 
85
FCKConfig.SmileyImages = [
 
86
'alert.png', 
 
87
'angry.png', 
 
88
'attention.png', 
 
89
'biggrin.png', 
 
90
'checkmark.png', 
 
91
'devil.png', 
 
92
'frown.png', 
 
93
'icon-error.png', 
 
94
'icon-info.png', 
 
95
'idea.png', 
 
96
'ohwell.png', 
 
97
'prio1.png', 
 
98
'prio2.png', 
 
99
'prio3.png', 
 
100
'redface.png', 
 
101
'sad.png', 
 
102
'smile.png', 
 
103
'smile2.png', 
 
104
'smile3.png', 
 
105
'smile4.png', 
 
106
'star_off.png', 
 
107
'star_on.png', 
 
108
'thumbs-up.png', 
 
109
'tired.png', 
 
110
'tongue.png'
 
111
] ;
 
112
 
 
113
 
 
114