From day one of instll, I hadn't been able to get HTMLArea to work. I gave up and started to look for an upgrade, only to find out they're not producing it anymore.
So, another direction - find another editor. I remembered that some time ago, I had used FCKeditor. Although it had its issues, I was able to at least use it. And then begins the long process of integration - but I eventually did it and got it to work with the Knoweldge Base articles - and here's how.
Go to
http://www.fckeditor.net and download a copy. Extract it and upload it to your /includes/plugins folder beneath its own FCKeditor folder.
Then, in your themes/admin_default/cpheader.tpl, change your head code to look like this (note, this is NOT the entire code, but begins where the top line is the same.)
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title><{$title}></title>
<meta http-equiv="Content-Type" content="text/html; charset=<{$language[charset]}>">
<link rel="stylesheet" type="text/css" media="all" href="<{$swiftpath}>staff/index.php?_ca=css" />
<script language="Javascript">
var themepath = "<{$themepath}>";
var swiftpath = "<{$swiftpath}>";
var BLANK_IMAGE="<{$themepath}>space.gif";
var swiftsessionid = "<{$session[sessionid]}>";
var swiftiswinapp = "<{$session[iswinapp]}>";
var cparea = "<{$area}>";
</script>
<script type="text/javascript" src="<{$themepath}>main.js"></script>
<{if $area eq "staff"}>
<script type="text/javascript" src="<{$localepath}>staffmenu.js"></script>
<{/if}>
<{if $calendar eq true}>
<{if $lschathistory == true || $isteamwork == true}>
<link rel="stylesheet" type="text/css" media="all" href="<{$themepath}>calendar-flatnav.css" title="win2k-1" />
<{else}>
<link rel="stylesheet" type="text/css" media="all" href="<{$themepath}>calendar-blue.css" title="winter" />
<{/if}>
<script type="text/javascript" src="<{$themepath}>calendar.js"></script>
<script type="text/javascript" src="<{$themepath}>lang/calendar-<{$languagecode}>.js"></script>
<script type="text/javascript" src="<{$themepath}>calendar-setup.js"></script>
<{/if}>
<{if $overlib eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/overLIB/overlib.js"></script>
<script type="text/javascript" src="<{$swiftpath}>includes/overLIB/overlib_exclusive.js"></script>
<{/if}>
<{if $spellcheck eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/Spellcheck/spellChecker.js"></script>
<{/if}>
<{if $jscachefile neq ""}>
<script type="text/javascript" src="<{$swiftpath}>files/<{$jscachefile}>"></script>
<{/if}>
<!-- Begin HTML editor -->
<script type="text/javascript">
<{if $htmlarea eq true}>
var _editor_lang = "en";
var _editor_url = "<{$swiftpath}>includes/FCKeditor/";
var editor = null;
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'contents' ) ;
oFCKeditor.BasePath = "<{$swiftpath}>includes/FCKeditor/" ;
oFCKeditor.ReplaceTextarea() ;
}
<{if $htmlareanotable neq true}>var loadTablePlugin = false;<{else}>var loadTablePlugin = true;<{/if}>
<{/if}>
</script>
<{if $htmlarea eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/FCKeditor/fckeditor.js"></script>
<{/if}>
<{processCPMenu area=$area}>
<script language="Javascript">
<{if $htmlarea eq true}>HTMLArea.loadPlugin("TableOperations");<{/if}>
function loadAllData() { preloadMenuImages(); <{if $htmlarea eq true}>
editor = new HTMLArea("contents");
editor.registerPlugin(TableOperations);
editor.generate();
<{/if}>
<!-- End HTML editor -->
</head>
Only one problem - doing this seems to break the drop downs under the reply functions.
Anyone care to help me debug?