I really need a syntax highlighter. *g*
Is it now correct?
Though the button doesn't appear.
robert
2010/9/10 Platonides <Platonides(a)gmail.com>om>:
orschiro(a)googlemail.com wrote:
Ok guys,
now I use the latest development trunk of the UsabilityInitiative but
the additional button still doesn't appear.
Any further ideas?
Here once again my vector.js:
http://wiki.ziesche.de/wiki/MediaWiki:Vector.js
robert
Your braces are wrong. Replace it with this:
addOnloadHook( function() {
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor !=
'undefined' ) {
// Add in the advanced toolbar
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'Code': {
icon:
'http://upload.wikimedia.org/wikipedia/commons/2/21/Button_invalid_template.png',
'type': 'button',
'label': '<code>',
action: {
type: 'encapsulate',
options: {
pre: "<code>",
post: "</code>"
}
}
}
}
} );
}
} );
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l