[Mediawiki-l] special button in the edit area
Platonides
Platonides at gmail.com
Sat Jul 24 23:16:05 UTC 2010
Scheid, Bernhard wrote:
> Hi,
>
> I would like to add a function/button to the edit window:
> like the "nowiki" or "italics" button it should create typographical hyphens (“...”) in the textarea. How could that be done? Or is there some extension to do that?
>
> Thx
>
> Bernhard
Go (as a sysop) to [[MediaWiki:Common.js]] and add the following:
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "http://url/to/the/image/button",
"speedTip": "Typographical hyphens",
"tagOpen": "“",
"tagClose": "”",
"sampleText": "Quoted text"};
More information about the MediaWiki-l
mailing list