Matthias Korn wrote:
> I think he was referring to the buttons in the editing toolbar, which
> can not be hidden by CSS afaik.
>
> Here is what I did quite some time ago (so I don't remember how I did
> it and if anything else apart from this is neccessary):
> http://wiki.rockinchina.com/index.php?title=MediaWiki:Common.js
>
> Actually, removing buttons 6,7 does not seem to work (file link and
> math are still there). But maybe it will get you started. Tell me if
> you sorted out how to remove those two though... ;-)
>
> Best,
> matsch
It doesn't work because the removing code is run before the button are
added.
Try this instead:
> function addButton(imageFile, speedTip, tagOpen, tagClose, sampleText,
> imageId) {
> if ((imageId=="mw-editbutton-image") ||
> (imageId=="mw-editbutton-media")) return;
> mwEditButtons[mwEditButtons.length] =
> {"imageId": imageId,
> "imageFile": imageFile,
> "speedTip": speedTip,
> "tagOpen": tagOpen,
> "tagClose": tagClose,
> "sampleText": sampleText};
> }
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l