1.) Download the attached editor package, unzip and upload the folder 'editor' to your pligg root directory. It uses the tiny_mce editor (the best option in my opinion).
2.) Add the code below to the very end of your footer.tpl template file:
Code:
<!--WYSIWYG Editor -->
<script language="javascript" type="text/javascript" src="{$my_base_url}{$my_pligg_base}/editor/tiny_mce_gzip.php"></script>
{literal}
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
theme_advanced_buttons1 : "bold,italic,underline,forecolor,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,undo,redo,link,unlink,separator,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});
</script>
{/literal}
<!--// WYSIWYG Editor -->
PS. if anyone knows of a conditional to only display the footer script when there is a <textarea> tag present, please post!










Once we get little things like that worked out it'll be added as an option in the config.php file.
Linear Mode




