﻿tinyMCE.init({
    mode: "specific_textareas",
    //file_browser_callback: "tinyBrowser", //Tiny Browser 3rd party img management plugin
    plugins: "safari,paste,style,advlist,advimage,advhr,table,imagemanager,contextmenu",
    //imagemanager_insert_template : '<a href="{$url}" rel="lightbox[gallery]"><img src="{$custom.thumbnail_url}" width="{$custom.twidth}" height="{$custom.theight}" /></a>',
    editor_selector: "rteEditor",
    removeformat_selector : 'b,span,p,a,hr,strong,em,i,ins',

    theme: "advanced",
   
    //filemanager,spellchecker,pagebreak,layer,table,save,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,

    //bttns removed: blockquote, anchor,cleanup,code, pastetext, strikethrough
    // Theme options - button# indicated the row# only
    /*Bar 1*/theme_advanced_buttons1: "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,|,cut,copy,paste,pasteword,|,bullist,numlist,|,outdent,indent",
    /*Bar 2*/theme_advanced_buttons2: "tablecontrols,|,undo,redo,|,link,unlink,|,image,|,charmap,|,hr,|removeformat",
    /*Bar 3*/theme_advanced_buttons3: "",
    /*Bar Position*/theme_advanced_toolbar_location: "top",
    /*Bar align*/theme_advanced_toolbar_align: "left",
    theme_advanced_statusbar_location: "bottom",
    content_css: "../css/TinyMCEUserStyles.css"
    
    // Style formats now defined in TinyMCEUserStyles.css
    /*style_formats: [
            { title: 'Standard text', block: 'p', style: {fontWeight: 'normal', color: '#000000', fontSize: '12px', margin: '2px'} },
			{ title: 'Heading', block: 'h1', styles: { fontWeight: 'normal', color: '#ffc000', fontSize: '20pt', margin: '2px 8px 8px 8px'} },
			{ title: 'Bold Colour', inline: 'span', styles: { fontWeight: 'bold', color: '#ffc000'} }

		]	//(n.b. no trailing comma in last line of code)*/
});
