Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
11,022
edits
m (+no indent) |
m (+Vertical space) |
||
Line 3: | Line 3: | ||
mw.loader.using('common.site.styles'); | mw.loader.using('common.site.styles'); | ||
/** -pm- WikiEditor additional features**/ | /** -pm- WikiEditor additional features **/ | ||
/** list of images: https://www.mediawiki.org/wiki/User:24pm/Icons**/ | |||
var customizeToolbar = function () { | var customizeToolbar = function () { | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
Line 33: | Line 34: | ||
} | } | ||
}, | }, | ||
" | "justify_center": { | ||
label: 'Centered', | label: 'Centered', | ||
type: 'button', | type: 'button', | ||
Line 45: | Line 46: | ||
} | } | ||
}, | }, | ||
" | "justify_right": { | ||
label: 'Allign to the right', | label: 'Allign to the right', | ||
type: 'button', | type: 'button', | ||
Line 57: | Line 58: | ||
} | } | ||
}, | }, | ||
" | "no_indent": { | ||
label: 'No indent for first line', | label: 'No indent for first line', | ||
type: 'button', | type: 'button', | ||
Line 81: | Line 82: | ||
} | } | ||
}, | }, | ||
"dash": { | |||
label: 'Dash', | label: 'Dash', | ||
type: 'button', | type: 'button', | ||
Line 90: | Line 91: | ||
pre: "–", | pre: "–", | ||
post: "" | post: "" | ||
} | |||
} | |||
}, | |||
"vertical_space": { | |||
label: 'Vertical space (paragraph indent), default 1em', | |||
type: 'button', | |||
icon: '//upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: "{{Vertical space|", | |||
post: "}}" | |||
} | } | ||
} | } |