tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink,styleselect,formatselect,fontselect,fontsizeselect,forecolor,backcolor,removeformat",
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        
      
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
   plugins : "style,table,advimage,advlink,inlinepopups,searchreplace,contextmenu,paste,fullscreen,noneditable,xhtmlxtras,media,typo3filemanager,nbspfix",

   entity_encoding : "raw",
 
 
 //test
 
 entities : "160,nbsp,38,amp",
//cleanup_on_startup : "true",


 
    setup : function(ed) {
        // Add a custom button
        ed.addButton('mybutton', {
            title : 'My button',
            image : 'img/example.gif',
            onclick : function() {
        // Add you own code to execute something on click
        ed.focus();
                ed.selection.setContent('<strong>Hello world!</strong>');
            }
        });
    }
   
});
