How to create a extra button and make it do the real work

Use this forum to ask questions about how to do things with my MediaWiki Extensions.
Post Reply
User avatar
tommy_725
Rank 0
Rank 0
Posts: 1
Joined: September 19th, 2010, 8:29 pm

How to create a extra button and make it do the real work

Post by tommy_725 »

Hello Everyone,
I m new to MW. i m trying to create a extra button nearby buttons: save, preview, show changes by making a extension.
i have used the hooks/EditPageBeforeButtons to create a extra button. But problem is that i dont know how to make this button work. because when I click this button, it does the same work like default save wikitext. I dont know how to call other functions if clicked this button. e.g. post data to a url, running a javascript or any other functions except default saving.
Any examples and tips would be very thankful!

greeting
tomtom
Post Reply