The major WYSIWYG editors are all generally good and have their individual strong and weak points but it seems that for the inexperienced user uploading and inserting images into the text area can be quite daunting.
If the user has got used to using CMSMS's Image Manager it is extremely easy to incorporate this into FCK as the image file browser and use it to upload, edit and insert images.
Simply make the following changes and additions to two files (back up both these files before changing):
file: modules/FCKeditorX/FCKeditorX.module.php
about line 425 change the
Code: Select all
$oFCKeditor->Config['ImageBrowserURL']
Code: Select all
$oFCKeditor->Config['ImageBrowserURL'] = $this->cms->config["root_url"].'/admin/imagefiles.php' ;
about line 65 find
Code: Select all
<td><table width="100" cellpadding="0" cellspacing="0"><tr><td class="block">
<a href="<?php echo "{$manager->config['base_url']}{$file['relative']}";?>" TARGET="_blank" title="<?php echo $entry; ?> - <?php echo Files::formatSize($file['stat']['size']); ?>"><img src="<?php
Code: Select all
<td><table width="100" cellpadding="0" cellspacing="0"><tr><td class="block">
<a href="javascript:SelectFile('<?php echo "{$manager->config['base_url']}{$file['relative']}";?>')" title="<?php echo $entry; ?> - <?php echo Files::formatSize($file['stat']['size']); ?>"><img src="<?php
Code: Select all
function SelectFile(fileUrl)
{
window.top.opener.SetUrl( fileUrl ) ;
window.top.close() ;
window.top.opener.focus() ;
}