/usr/share/moin/htdocs/applets/moinfckconfig.js is in python-moinmoin 1.9.9-1ubuntu1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | /*
* FCKeditor - Configuration for usage within MoinMoin wiki engine
*/
FCKConfig.Debug = false ;
FCKConfig.StylesXmlPath = '../../moinfckstyles.xml' ;
FCKConfig.EnableXHTML = true ;
FCKConfig.EnableSourceXHTML = true ;
FCKConfig.FillEmptyBlocks = false ;
FCKConfig.FormatSource = true ;
FCKConfig.FormatOutput = false ;
FCKConfig.GeckoUseSPAN = false ;
FCKConfig.IEForceVScroll = true ;
FCKConfig.StartupFocus = true ;
FCKConfig.ForcePasteAsPlainText = false ;
FCKConfig.TabSpaces = 0 ;
FCKConfig.ShowBorders = true ;
// when true, IE has problems selecting a line of text and tends to select a whole paragraph.
FCKConfig.UseBROnCarriageReturn = false ;
FCKConfig.ToolbarStartExpanded = true ;
FCKConfig.ToolbarCanCollapse = false ;
FCKConfig.ToolbarSets["MoinDefault"] = [
['PasteText','PasteWord'],
['Undo','Redo'], ['Find','Replace'],
['MoinFormat'],
// disabled some styles until IE endless loop is fixed:
//['Bold', 'Italic', 'Typewriter', 'Underline', 'StrikeThrough', '-', 'Big', 'Small', 'Superscript', 'Subscript'],
['Bold', 'Italic', 'Underline', 'StrikeThrough', 'RemoveFormat'],
['OrderedList','UnorderedList','-','Indent','Outdent'],
['Link','Unlink','Attachment','Image','Smiley'],
['Table','Rule','SpecialChar'],
['Macro'],
['Source']
] ;
FCKConfig.ToolbarSets["MoinBig"] = [
['SelectAll','Cut','Copy','Paste','PasteText','PasteWord'],
['Undo','Redo'], ['Find','Replace'],
['Link','Unlink','Image'],
['Table','Rule','Smiley','SpecialChar','UniversalKey'],
['OrderedList','UnorderedList','-','Indent','Outdent'],
['RemoveFormat'], ['MoinFormat'], ['Style'],
['Bold','Italic','Underline','StrikeThrough','-','Superscript','Subscript'],
['Source', 'Macro']
] ;
FCKConfig.ContextMenu = ['Generic','Link','Image', 'NumberedList','TableCell','Table'] ;
FCKConfig.LinkBrowser = false ;
FCKConfig.LinkDlgHideTarget = true ;
FCKConfig.LinkDlgHideAdvanced = true ;
FCKConfig.ImageBrowser = false ;
FCKConfig.ImageDlgHideLink = true ;
FCKConfig.ImageDlgHideAdvanced = true ;
/*
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
*/
/*
FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
*/
FCKConfig.Plugins.Add( 'selection') ;
FCKConfig.Plugins.Add( 'moinbehaviour') ;
FCKConfig.Plugins.Add( 'restrict_actions' ) ;
FCKConfig.Plugins.Add( 'moinunlink' );
FCKConfig.Plugins.Add( 'macro', 'en,it' ) ;
FCKConfig.Plugins.Add( 'moinlink' ) ;
FCKConfig.Plugins.Add( 'moinattachment' ) ;
FCKConfig.Plugins.Add( 'moinformat' ) ;
FCKConfig.Plugins.Add( 'moinimage' ) ;
FCKConfig.Plugins.Add( 'smiley' );
/* The list of the smiley images. MUST be done from here, auto-generating in MoinMoin-Code does not work! */
FCKConfig.SmileyImages = [
'alert.png',
'angry.png',
'attention.png',
'biggrin.png',
'checkmark.png',
'devil.png',
'frown.png',
'icon-error.png',
'icon-info.png',
'idea.png',
'ohwell.png',
'prio1.png',
'prio2.png',
'prio3.png',
'redface.png',
'sad.png',
'smile.png',
'smile2.png',
'smile3.png',
'smile4.png',
'star_off.png',
'star_on.png',
'thumbs-up.png',
'tired.png',
'tongue.png'
] ;
// use smiley with this data mapping object. when insert smiley image with gui editor
// smiley plugin insert additional attribute (title, alt) with this data
FCKConfig.SmileyMap = {
'alert.png' : '/!\\',
'angry.png' : 'X-(',
'attention.png' : '<!>',
'biggrin.png' : ':D',
'checkmark.png' : '(./)',
'devil.png' : '>:>',
'frown.png' : '<:(',
'icon-error.png' : '{X}',
'icon-info.png' : '{i}',
'idea.png' : '(!)',
'ohwell.png' : ':\\',
'prio1.png' : '{1}',
'prio2.png' : '{2}',
'prio3.png' : '{3}',
'redface.png' : ':o',
'sad.png' : ':(',
'smile.png' : ':)',
'smile2.png' : 'B)',
'smile3.png' : ':))',
'smile4.png' : ';)',
'star_off.png' : '{o}',
'star_on.png' : '{*}',
'thumbs-up.png' : '{OK}',
'tired.png' : '|)',
'tongue.png' : ':-?'
};
FCKConfig.CustomStyles =
{
'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } }
};
// Do not add, rename or remove styles here. Only apply definition changes.
FCKConfig.CoreStyles =
{
// Basic Inline Styles.
'Bold' : { Element : 'strong', Overrides : 'b' },
'Italic' : { Element : 'em', Overrides : 'i' },
'Underline' : { Element : 'u' },
'StrikeThrough' : { Element : 'strike' },
'Subscript' : { Element : 'sub' },
'Superscript' : { Element : 'sup' },
// Basic Block Styles (Font Format Combo).
'p' : { Element : 'p' },
'div' : { Element : 'div' },
'pre' : { Element : 'pre' },
'address' : { Element : 'address' },
'h1' : { Element : 'h1' },
'h2' : { Element : 'h2' },
'h3' : { Element : 'h3' },
'h4' : { Element : 'h4' },
'h5' : { Element : 'h5' },
'h6' : { Element : 'h6' },
// Other formatting features.
'FontFace' :
{
Element : 'span',
Styles : { 'font-family' : '#("Font")' },
Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ]
},
'Size' :
{
Element : 'span',
Styles : { 'font-size' : '#("Size","fontSize")' },
Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ]
},
'Color' :
{
Element : 'span',
Styles : { 'color' : '#("Color","color")' },
Overrides : [ { Element : 'font', Attributes : { 'color' : null } } ]
},
'BackColor' : { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } },
'SelectionHighlight' : { Element : 'span', Styles : { 'background-color' : 'navy', 'color' : 'white' } }
};
|