Download und unzip tinymce im Verzeichnis custom in der Mantisinstallation.
http://tinymce.moxiecode.com/index.php
Ändere die config.inc.php
$g_meta_include_file = '%absolute_path%custom/meta_inc.php';
Füge zur custom/meta_inc.php folgende Zeilen hinzu (eventuell muss die Datei angelegt werden).
<script type="text/javascript" src="custom/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "spellchecker,searchreplace,print,contextmenu,paste,fullscreen,inlinepopups",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,bullist,numlist,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
valid_elements : "a[href|target=_blank],b/strong,i/italic,u/underline,s/strikethrough,ul,ol,li,br",
force_br_newlines : true,
force_p_newlines : false,
remove_linebreaks : true,
apply_source_formatting:false,
// Example content CSS (should be your site CSS)
content_css : "css/default.css",
});
</script>
all is fine, this works good (at least for me), also in IE7 and subdomain. Just some small corrections (typos):
1) Should be without / before custom, should be like this:
$g_meta_include_file = ‘%absolute_path%custom/meta_inc.php’;
2) Should be also without / before custom, should be like this:
3) remove comma after the last parameter, should be like this:
content_css : “/css/default.css”
2)Should be also without / before custom, should be like this:
Replace ( and ) to in my post:
(script type=”text/javascript” src=”/custom/tinymce/jscripts/tiny_mce/tiny_mce.js”)(/script)
ops, once again:
2)Should be also without / before custom, should be like this:
Replace ( and ) to the angle braces in my post:
(script type=”text/javascript” src=”custom/tinymce/jscripts/tiny_mce/tiny_mce.js”)(/script)
changed it – code was optimized for a special use case