{literal}
<script type="text/javascript" src="/extensions/TinyMCE/js/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		language : "ru",
		mode : "{/literal}{$mode}{literal}",
		elements : "{/literal}{$elem}{literal}",
		theme : "advanced",
		plugins : "autolink,lists,pagebreak,table,advhr,advimage,advlink,emotions,iespell,inlinepopups,preview,media,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

		theme_advanced_buttons1 : "formatselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontsizeselect,forecolor,backcolor,|,outdent,indent,blockquote,|,link,unlink,image,code",
		theme_advanced_buttons2 : "undo,redo,|,tablecontrols,|,hr,|,sub,sup,|,charmap,emotions,|,fullscreen,|,preview",
		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
	});
</script>
{/literal}
