﻿tinyMCE.init({
	// General options
	mode : "specific_textareas",
	theme : "advanced",
	language : "ru",
	plugins : "safari,style,inlinepopups,preview,media,fullscreen,autoresize,paste",
	editor_selector : "mce",
	entity_encoding : "raw",
	inline_styles : false,
	relative_urls : false,
	paste_strip_class_attributes : "all",
	paste_remove_styles : true,
	paste_convert_middot_lists : false,
	
	// Theme options
	theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,blockquote",
	theme_advanced_buttons2 : "link,unlink,anchor,image,media,|,removeformat,fullscreen,preview,",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "center",
	theme_advanced_statusbar_location: "bottom",
	theme_advanced_resizing: true,
	theme_advanced_resize_horizontal: false, 
	//theme_advanced_resizing_max_width: 300,
	//theme_advanced_resizing_min_width: 100,
	theme_advanced_resizing_use_cookie: false,
	//external_image_list_url : "/content/myexternallist.js"
	
	content_css : "/content/tiny_style.css",
	
    // default
//    valid_elements : "@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|"
//    + "onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|"
//    + "onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|"
//    + "name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,"
//    + "#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|"
//    + "src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,"
//    + "-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|"
//    + "height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|"
//    + "height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,"
//    + "#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor"
//    + "|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div,"
//    + "-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face"
//    + "|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],"
//    + "object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width"
//    + "|height|src|*],script[src|type],map[name],area[shape|coords|href|alt|target],bdo,"
//    + "button,col[align|char|charoff|span|valign|width],colgroup[align|char|charoff|span|"
//    + "valign|width],dfn,fieldset,form[action|accept|accept-charset|enctype|method],"
//    + "input[accept|alt|checked|disabled|maxlength|name|readonly|size|src|type|value],"
//    + "kbd,label[for],legend,noscript,optgroup[label|disabled],option[disabled|label|selected|value],"
//    + "q[cite],samp,select[disabled|multiple|name|size],small,"
//    + "textarea[cols|rows|disabled|name|readonly],tt,var,big"

    valid_elements : "@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],"
    + "a[rel|rev|charset|hreflang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur],"
    + "strong/b/h1/h2/h3/h4/h5/h6,em/i,strike,u,"
    + "#p,-ol[type|compact],-ul[type|compact],-li,br,"
    + "img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align],"
    + "-blockquote,-div,"
    + "-span,-code,-pre,address,-font[face|size|color],dd,dl,dt,cite,"
    + "object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width|height|src|*]"
});