<script type="text/javascript">
tinyMCEPreInit = {
base : "<?php echo includes_url('
js/tinymce'); ?>",
suffix : "",
mceInit : {
mode : "specific_textareas",
editor_selector : "mceEditor",
theme : "advanced",
skin : "default",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft ,justifycenter,justifyright,justifyfull,|,formatse lect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numl ist,|,outdent,indent,|,undo,redo,|,link,unlink,cle anup,code,|,forecolor,backcolor,|,media",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
content_css : "<?php echo get_bloginfo('stylesheet_directory'); ?>/style.css",
languages : 'en',
disk_cache : true,
width : "<?php echo $width; ?>",
height : "<?php echo $height; ?>",
language : 'en',
setup : function(editor) {
editor.onKeyUp.add(function(editor, e) {
tinyMCE.triggerSave();
jQuery("#" + editor.id).valid();
});
}
},
load_ext : function(url,lang){var sl=tinymce.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.
js');sl.markDone(url+'/langs/'+lang+'_dlg.
js');}
};
(function(){var t=tinyMCEPreInit,sl=tinymce.ScriptLoader,ln=t.mceI nit.language,th=t.mceInit.theme;sl.markDone(t.base +'/langs/'+ln+'.
js');sl.markDone(t.base+'/themes/'+th+'/langs/'+ln+'.
js');sl.markDone(t.base+'/themes/'+th+'/langs/'+ln+'_dlg.
js');})();
tinyMCE.init(tinyMCEPreInit.mceInit);