As a follow-up to NeoNecro's notes.
I just finished doing some testing of FCKeditor and found the version 2.0beta 2 still a bit buggy. All the style/font/sizing dropdowns for example, don't work in IE 6 on SP2 for example that I have and it's a posted bug with no follow-up.
I also tried version 1.6 but only works on IE.
I got ver 2.0 to work in IE and Mozilla with some issues like not getting the image upload feature to work.
A few notes: I was installing on my local devel workstatation and needed to set the basepath for each time I used it in the form.
I copied the FCKedtor code into the public_html/fckeditor directory. Adjust as required for your site.
All thats needed in your theme's header.thtml is the include of the main js file - near where the other script tags are. Use the template variable {site_url} so that your full url is used.
Text Formatted Code
<script type="text/javascript" src="{site_url}/fckeditor/fckeditor.js"></script>
Currently, Geeklog's code for the comment, submit new story and admin storyeditor have suport to use an advanced editor template file so you can toggle the advanced editor on and off.
You need to add the $_CONF parm to your config.php (it will be set false in 1.3.10 by default) as it's not currently defined. Set true for enabled and false to disable.
Text Formatted Code
$_CONF['advanced_editor'] = true;
Using the admin storyeditor as an example, you need to copy the admin/story/storyeditor.thtml to storyeditor_advanced.thtml. Then edit this template to add the changes required to launch the FCKeditor component in the textareas.
Add the following just above the closing form tag
Text Formatted Code
<script>
var oFCKeditor = new FCKeditor( 'introtext' ) ;
oFCKeditor.BasePath = "{site_url}/fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
var oFCKeditor = new FCKeditor( 'bodytext' ) ;
oFCKeditor.BasePath = "{site_url}/fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
</script>
This works as is in IE but Mozilla needs to have the textarea fields also defined with the ID attribute. For example the introtext field would be:
Text Formatted Code
<textarea id="introtext" name="introtext" cols="70" rows="6" wrap="virtual">{story_introtext}
You would need to repeat the template editing for the comment and story submit forms or other forms as required. This method does allow you to toggle it off via the config.php and if the advanced version of the template does not exist - it defaults to the normal template.
Geeklog components by PortalParts -- www.portalparts.com