@Platonides:
Great!!! Thx!! ________________________________________ Von: mediawiki-l-bounces@lists.wikimedia.org [mediawiki-l-bounces@lists.wikimedia.org] im Auftrag von Platonides [Platonides@gmail.com] Gesendet: Sonntag, 25. Juli 2010 01:16 An: mediawiki-l@lists.wikimedia.org Betreff: Re: [Mediawiki-l] special button in the edit area
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"};
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l