Hi, I think I have the same problem, so I will tell you what I do...
First of all, I transform the editor in a textarea in this way:
$mform->addElement('editor', 'content_editor', get_string('content'), null, $options);
in
$mform->addElement('textarea', 'content_textarea', get_string('content'), 'rows="15" cols="80"');
Then I write a javascript script where I build a new tinymce in my textarea. The script is:
$directionality = get_string('thisdirection', 'langconfig');
$strtime = get_string('strftimetime');
$strdate = get_string('strftimedaydate');
$lang = current_language();
$contentcss = $PAGE->theme->editor_css_url()->out(false);
$tinymce = new tinymce_texteditor();
echo '
<script type="text/javascript" language="javascript" src="'.$CFG->wwwroot.'/lib/xhprof/xhprof_html/jquery/jquery-1.2.6.js"></script>
<script type="text/javascript" language="javascript" src="'.$CFG->wwwroot.'/lib/editor/tinymce/tiny_mce/'.$tinymce->version.'/jquery.tinymce.js"></script>
<script type="text/javascript" language="javascript" src="'.$CFG->wwwroot.'/lib/editor/tinymce/tiny_mce/'.$tinymce->version.'/tiny_mce.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {
tinyMCE.init({
mode : "textareas",
theme : "advanced",
skin : "o2k7",
skin_variant : "silver",
plugins : "advimage,safari,table,style,layer,advhr,advlink,emotions,inlinepopups,searchreplace,paste,directionality,fullscreen,moodlenolink,nonbreaking,contextmenu,insertdatetime,save,iespell,preview,print,noneditable,visualchars,xhtmlxtras,template,pagebreak,spellchecker,dragmath,moodlemedia",
theme_advanced_buttons1 : "fontselect,fontsizeselect,formatselect,|,undo,redo,|,search,replace,|,fullscreen",
theme_advanced_buttons2 : "bold,italic,underline,strikethrough,sub,sup,|,justifyleft,justifycenter,justifyright,|,cleanup,removeformat,pastetext,pasteword,|,forecolor,backcolor,|,ltr,rtl",
theme_advanced_buttons3 : "bullist,numlist,outdent,indent,|,link,unlink,moodlenolink,|,image,moodlemedia,dragmath,nonbreaking,charmap,table,|,code,spellchecker,|,anchor",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_fonts : "Trebuchet=Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;Wingdings=wingdings",
relative_urls : "false",
document_base_url : "'.$CFG->httpswwwroot.'",
content_css : "'.$contentcss.'",
language : "'.$lang.'",
directionality : "'.$directionality.'",
plugin_insertdate_dateFormat : "'.$strdate.'",
plugin_insertdate_timeFormat : "'.$strtime.'",
apply_source_formatting : "true",
remove_script_host : "false",
entity_encoding : "raw",
theme_advanced_resize_horizontal : "true",
theme_advanced_resizing : "true",
theme_advanced_toolbar_location : "top",
theme_advanced_statusbar_location : "bottom",
spellchecker_rpc_url : "'.$CFG->wwwroot.'/lib/editor/tinymce/tiny_mce/'.$tinymce->version.'/plugins/spellchecker/rpc.php"
});
});
//]]>
</script>
';
I put this script in the edit.php file, but I don't think this is the better place. This script recreate the same tinymce that we use usually.
I hope this can help you!!!