~ubuntu-branches/ubuntu/precise/mediawiki-extensions/precise

« back to all changes in this revision

Viewing changes to dist/mediawiki-extensions-fckeditor/usr/share/mediawiki-extensions/fckeditor/fckeditor_config.js

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-05-04 15:13:35 UTC
  • mfrom: (0.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100504151335-54qeucg3ec108q28
Tags: 2.2
* Added Replaces:/Conflicts: to allow a proper upgrade.
Closes: #580066
* Fixed package descriptions.
Closes: #579667
* Patched mediawiki-extensions-fckeditor to make it work with
  php 5.3. The fix may not be perfect but at least it work.
  Not closing the bug (#579822) for now..

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FCKeditor Extension for MediaWiki specific settings.
 
3
 */
 
4
 
 
5
// When using the modified image dialog you must set this variable. It must
 
6
// correspond to $wgScriptPath in LocalSettings.php.
 
7
FCKConfig.mwScriptPath = '' ;
 
8
 
 
9
// Setup the editor toolbar.
 
10
FCKConfig.ToolbarSets['Wiki'] = [
 
11
        ['Source'],
 
12
        ['Cut','Copy','Paste',/*'PasteText','PasteWord',*/'-','Print'],
 
13
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
 
14
        ['SpecialChar','Table','Image','Rule'],
 
15
        ['MW_Template','MW_Special','MW_Ref','MW_References','MW_Source','MW_Math','MW_Signature','MW_Category'],
 
16
        '/',
 
17
        ['FontFormat'],
 
18
        ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
 
19
        ['OrderedList','UnorderedList','-','Blockquote'],
 
20
//      ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 
21
        ['Link','Unlink','Anchor'],
 
22
//      ['TextColor','BGColor'],
 
23
        ['FitWindow','-','About']
 
24
] ;
 
25
 
 
26
// Load the extension plugins.
 
27
FCKConfig.PluginsPath = FCKConfig.EditorPath + '../plugins/' ;
 
28
FCKConfig.Plugins.Add( 'mediawiki', 'en,he,pl') ;
 
29
 
 
30
FCKConfig.ForcePasteAsPlainText = true ;
 
31
FCKConfig.FontFormats   = 'p;h1;h2;h3;h4;h5;h6;pre' ;
 
32
 
 
33
FCKConfig.AutoDetectLanguage    = true ;
 
34
FCKConfig.DefaultLanguage               = 'en' ;
 
35
 
 
36
FCKConfig.WikiSignature = '--~~~~';
 
37
 
 
38
// FCKConfig.DisableObjectResizing = true ;
 
39
 
 
40
FCKConfig.EditorAreaStyles = '\
 
41
.FCK__MWTemplate, .FCK__MWSource, .FCK__MWRef, .FCK__MWSignature, .FCK__MWSpecial, .FCK__MWReferences, .FCK__MWMath, .FCK__MWNowiki, .FCK__MWIncludeonly, .FCK__MWNoinclude, .FCK__MWOnlyinclude, .FCK__MWGallery \
 
42
{ \
 
43
        border: 1px dotted #00F; \
 
44
        background-position: center center; \
 
45
        background-repeat: no-repeat; \
 
46
        vertical-align: middle; \
 
47
} \
 
48
.FCK__MWSource \
 
49
{ \
 
50
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_source.gif); \
 
51
        width: 59px; \
 
52
        height: 15px; \
 
53
} \
 
54
.FCK__MWTemplate \
 
55
{ \
 
56
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_template.gif); \
 
57
        width: 20px; \
 
58
        height: 15px; \
 
59
} \
 
60
.FCK__MWRef \
 
61
{ \
 
62
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_ref.gif); \
 
63
        width: 18px; \
 
64
        height: 15px; \
 
65
} \
 
66
.FCK__MWSpecial \
 
67
{ \
 
68
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_special.gif); \
 
69
        width: 66px; \
 
70
        height: 15px; \
 
71
} \
 
72
.FCK__MWNowiki \
 
73
{ \
 
74
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_nowiki.gif); \
 
75
        width: 66px; \
 
76
        height: 15px; \
 
77
} \
 
78
.FCK__MWHtml \
 
79
{ \
 
80
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_html.gif); \
 
81
        width: 66px; \
 
82
        height: 15px; \
 
83
} \
 
84
.FCK__MWMath \
 
85
{ \
 
86
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_math.gif); \
 
87
        width: 66px; \
 
88
        height: 15px; \
 
89
} \
 
90
.FCK__MWIncludeonly \
 
91
{ \
 
92
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_includeonly.gif); \
 
93
        width: 66px; \
 
94
        height: 15px; \
 
95
} \
 
96
.FCK__MWNoinclude \
 
97
{ \
 
98
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_noinclude.gif); \
 
99
        width: 66px; \
 
100
        height: 15px; \
 
101
} \
 
102
.FCK__MWGallery \
 
103
{ \
 
104
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_gallery.gif); \
 
105
        width: 66px; \
 
106
        height: 15px; \
 
107
} \
 
108
.FCK__MWOnlyinclude \
 
109
{ \
 
110
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_onlyinclude.gif); \
 
111
        width: 66px; \
 
112
        height: 15px; \
 
113
} \
 
114
.FCK__MWSignature \
 
115
{ \
 
116
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_signature.gif); \
 
117
        width: 66px; \
 
118
        height: 15px; \
 
119
} \
 
120
.FCK__MWReferences \
 
121
{ \
 
122
        background-image: url(' + FCKConfig.PluginsPath + 'mediawiki/images/icon_references.gif); \
 
123
        width: 66px; \
 
124
        height: 15px; \
 
125
} \
 
126
' ;