I am planning to update the Category Descriptions with the following changes in file category.tpl:Both fido-x's and hm2k's solutions work for me on IE7, FF3 and Opera9.62
May I also suggest that, if Bruce & Juergen Category Descriptions and fido's home page contributions go into 0.8, could they be skinned to silver to make then look the same as standard Open Cart
Code: Select all
....
<script type="text/javascript"><!--
var sBasePath = document.location.href.replace(/index\.php.*/, 'javascript/fckeditor/');
<?php foreach ($categories as $category) { ?>
var oFCKeditor<?php echo $category['language_id']; ?> = new FCKeditor('description<?php echo $category['language_id']; ?>');
oFCKeditor<?php echo $category['language_id']; ?>.BasePath = sBasePath;
oFCKeditor<?php echo $category['language_id']; ?>.Value = document.getElementById('description<?php echo $category['language_id']; ?>').value;
oFCKeditor<?php echo $category['language_id']; ?>.Width = '600';
oFCKeditor<?php echo $category['language_id']; ?>.Height = '300';
oFCKeditor<?php echo $category['language_id']; ?>.Config['DocType'] = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">';
oFCKeditor<?php echo $category['language_id']; ?>.Config['SkinPath'] = oFCKeditor<?php echo $category['language_id']; ?>.BasePath + 'editor/skins/silver/' ;
oFCKeditor<?php echo $category['language_id']; ?>.ToolbarSet = 'Custom' ;
oFCKeditor<?php echo $category['language_id']; ?>.ReplaceTextarea();
<?php } ?>
//--></script>
.....