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"};