I have some aditional changes to
include/inc_lib/wysiwyg.editor.inc.php if you like.
Mainly i wasn't able to make it work in the way it was told before.
Anyway, maybe this is one more way to get to the solution.
First you have to make everything
zBurner told before, than
you can modify:
Code: Select all
// load TinyMCE,
case 5:
?>
<textarea style='width:<?php echo $wysiwyg_editor['width'] ?>; height: <?php echo $wysiwyg_editor['height']?> '
name='<?php echo $wysiwyg_editor['field']?>' >
<?php echo $wysiwyg_editor['value']; ?>
</textarea>
<script language="javascript" type="text/javascript" src='include/inc_ext/tinymce/jscripts/tiny_mce/tiny_mce.js'></script>
<script language="javascript" type="text/javascript">
tinyMCE.init
({
// ** Now TinyMCE options start, change if you want **
mode : "textareas",
theme: "advanced",
plugins: "inlinepopups, fullscreen, zoom, table, advhr, preview, advimage, advlink, emotions, contextmenu, autosave, iespell, insertdatetime, paste, print, save, noneditable, searchreplace",
theme_advanced_toolbar_location: "top",
theme_advanced_buttons1: "fullscreen, bold, italic, underline, separator justifyleft, justifycenter, justifyright, justifyfull, separator, bullist, numlist, separator, outdent, indent, separator, undo, redo, print, save, search, replace, pastetext,pasteword",
theme_advanced_buttons2: "emotions, advhr, preview, advimage, link, unlink, anchor, context, image, separator, link, unlink, sub, sup, forecolor, backcolor, separator,hr, separator, removeformat, selectall,insertdate,inserttime, iespell, zoom, separator, cleanup, help, code hr, visualaid, charmap, separator",
theme_advanced_buttons3: "styleselect, fontselect, fontsizeselect,tablecontrols",
auto_reset_designmode: "true",
extended_valid_elements : "font[face|size|color] , hr[class|width|size|noshade], a[name|href|target|title|onclick], ",
document_base_url: "/",
content_css: "phpwcms_template/inc_css/tiny.css",
plugin_insertdate_dateFormat : "%d-%m-%Y",
plugin_insertdate_timeFormat : "%H:%M:%S",
plugin_preview_width : "500",
plugin_preview_height : "600",
table_styles : "Header 1=header1;Header 2=header2;Header 3=header3",
table_cell_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Cell=tableCel1",
table_row_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1",
fullscreen_settings : {
theme_advanced_path_location : "top"
}
// ** Now TinyMCE options end **
});
</script>
<?php
$wysiwyg_loaded_tinyMCE = 1;
break;
I added the plugins and buttons to make it work well, so you can copy and paste it, to make it run in a few seconds. But there are still some features i don't know exactly.
There are still two bugs left.
First Tiny starts in the Keywords (Schlüsselwörter) and Picture Subtitle Area (Bildunterzeile) as well and
Second it only works with Firefox, Internet Explorer shows some errors.