var myEditor = new YAHOO.widget.Editor('msgpost', { 
	    height: '500px', 
	    width: '430px', 
	    dompath: true, //Turns on the bar at the bottom 
	    animate: true, //Animates the opening, closing and moving of Editor windows
	    toolbar: { 
	        titlebar: 'Nieuws invoer', 
	        buttons: [ 
	            { group: 'textstyle', label: 'Stijl', 
	                buttons: [ 
	                    { type: 'push', label: 'Dik gedrukt', value: 'bold' }, 
	                    { type: 'push', label: 'Schuin gedrukt', value: 'italic' }, 
	                    { type: 'push', label: 'Onderlijnt', value: 'underline' },
		            { type: 'push', label: 'Verwijder formatering', value: 'removeformat', disabled: true }
	                ] 
	            }, 
		    { type: 'separator' }, 
		    { group: 'alignment', label: 'Uitlijning', 
		        buttons: [ 
		            { type: 'push', label: 'Links uitlijnen', value: 'justifyleft' }, 
		            { type: 'push', label: 'Centreren', value: 'justifycenter' }, 
		            { type: 'push', label: 'Rechts uitlijnen', value: 'justifyright' }, 
		            { type: 'push', label: 'Breed uitlijnen', value: 'justifyfull' } 
		        ] 
		    }, 
		    { type: 'separator' }, 
		    { group: 'indentlist', label: 'Inspingen', 
		        buttons: [ 
		            { type: 'push', label: 'Inspringen', value: 'indent', disabled: true }, 
		            { type: 'push', label: 'Terug inspringen', value: 'outdent', disabled: true }, 
		            { type: 'push', label: 'opsommen', value: 'insertunorderedlist' }, 
		            { type: 'push', label: 'Nummeren', value: 'insertorderedlist' } 
		        ] 
		    },
		    { type: 'separator' }, 
		    { group: 'insertitem', label: 'Toevoegen', 
		        buttons: [ 
		            { type: 'push', label: 'Link invoegen', value: 'createlink', disabled: true }, 
		            { type: 'push', label: 'Afbeelding invoegen', value: 'insertimage' }, 
		            { type: 'push', label: 'Bron invoegen', value: 'insertsource'}
		        ] 
		    } 
	        ] 
	    } 
});

myEditor.on('toolbarLoaded', function() { 
	this.toolbar.on('insertsourceClick', function(o) { 
	        this.execCommand('inserthtml', '<em>Bron: Naam</em>&nbsp;'); 
	    }, myEditor, true); 

}, myEditor, true);  


myEditor.render(); 
