Not really a mod, just an integration of a cross-browser wysiwyg editor that is easy to set up and use. It now works well on my pligg installation, after some initial problems with conflicting javascript loading.
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 --> You can alter the size of the displayed editor by changing the rows and cols values associated with any <textarea> tags, in templates such as comment_form.tpl and submit_step_2.tpl. To customise the look of the editor, you can add or remove buttons in the "theme_advanced_buttons1" line of the script above.
PS. if anyone knows of a conditional to only display the footer script when there is a <textarea> tag present, please post!