10
Oops, wrong thinking, sorry!
The code should like this in initcode:
echo '<script language="javascript" type="text/javascript" src="'.XOOPS_URL.'/modules/tinyeditor/editor/'.$tinyededitor_load.'"></script>';
[color=33FF33]echo "function myCustomSaveContent(element_id, html, body) {";
echo "html = html.replace(/modules/system/,'');";
echo "return html;";
echo "}";[/color]
AND:
echo '<script language="javascript" type="text/javascript">';
echo 'tinyMCE.init({';
echo 'mode : "textareas",';
echo 'editor_selector : "mceEditor",';
echo 'theme : "advanced",';
echo 'language : "'.$moduleConfig['tinyedlang'].'",';
[color=33FF33]echo 'save_callback : "myCustomSaveContent",';[/color]