Page 1 of 1

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

Posted: September 19th, 2010, 8:32 pm
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