I would like the signature button in the enhanced editing toolbar to add
the signature as "~~~~" and not as "--~~~~". So I have a script in my
person JS which is shown below. But it does not actually work, i.e. the
signature button still adds the --. I think it is because the JS below is
not run *after* the button is set up, but rather before it is set up. What
dependency should I add so that this script is executed after the buttons
in the enhanced editing toolbar are loaded?
Thanks in advance,
Huji
// no -- prefix for signature
buttonmw.loader.using(['mediawiki.util'], function() {
$("a[rel=signature]").unbind("click").click(function()
{insertTags('~~' + '~~')});});