es.ToolbarView = function( $container, model ) { this.$ = $container; this.model = model; this.config = [ { name: 'Text', items: [ { 'type' : 'bold', 'annotation': 'textStyle/bold' }, { 'type' : 'italic', 'annotation': 'textStyle/italic' }, { 'type' : 'link', 'annotation': 'link/internal' }, 'small', 'big', 'sub', 'super', 'clear' ] }, '/', { name: 'Lists', items: [ 'bullet', 'number', 'indent', 'outdent' ] }, '/', { name: 'Preview', items: [ 'json', 'wikitext', 'html', 'render' ] } ]; for( var i = this.config.length - 1; i >= 0; i-- ) { if ( es.isPlainObject( this.config[i] ) ) { var $group = $( '