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 [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
