Amruta Lonkar wrote:
I have written a page in extensions, that will enable a user to add reference information. However now i want to call this page in such a way that when a user is writing a new article at that time he can click on either a button like the ones located above the existing text editor which will call that page. I am trying to do this on my local wiki. Does anybody know how this can be done?. Does anybody know what might be any other way to do it
Hello,
Three possibilities:
1/ The text editor buttons are in a <div id='toolbar'> so you can probably make a javascript that add new buttons.
-> might be a bit of troubles if you dont know javascript (like me)
2/ We could also add a hook so extensions can add new buttons easily (read without javascript hacking).
-> need a developer to add hooks and make them available in next 1.5. But it is in Release Candidate status and I dont think we add any new features in that branch. Might be for 1.6 (march-april 2006?).
3/ You can hack the source code: the function that build the editing toolbar is in ./include/EditPage.php , method getEditToolbar() .
-> it is the fastest way for you, but you will have to keep a patch of your changes for futures upgrades.
Maybe Avar can add the hooks, I am sure he likes them :p
cheers,