Hello Platonides,
I looked into it but haven't found any information which file I have
to edit. Could you help me out please?
Thank you.
2010/8/29 Platonides <Platonides(a)gmail.com>om>:
orschiro wrote:
Hello guys,
I'm working with the new editor from Usability extension. Tough I miss
some extra buttons that insert some code snippets that I'd like to
include. How can I do this?
Is there any documentation about this?
Thank you in advance.
robert
There is a bit in
http://usability.wikimedia.org/wiki/Toolbar_customization but
nonetheless I found it hard to do, because it tries to be so flexible.
Example for inserting <code> tags:
if ( typeof $j != 'undefined' &&
typeof $j.fn.wikiEditor != 'undefined' ) {
// Add in the advanced toolbar
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'ResponseHeader': {
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