For your edit button try this :


function addCustomButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) {

 mwCustomEditButtons[mwCustomEditButtons.length] =
   {"imageId": imageId,
    "imageFile": imageFile,
    "speedTip": speedTip,
    "tagOpen": tagOpen,
    "tagClose": tagClose,
    "sampleText": sampleText};

}

/**

* Insert video button
*/


addCustomButton('http://upload.wikimedia.org/wikipedia/commons/9/92/Nuvola-Multimedia01.png',

               'Video',
               '{{',
               '}}',
               '#ev:service|id|witdh',
               'mw-editbutton-video');

Good Luck

Start a discussion with Mwuser

Start a discussion