Forums

Add/Remove Editor No longer working

calsnoboarder 23 Aug, 2011
It was working, now it doesn't... now when I hover over an area that has the ADD/REMOVE EDITOR link in a editing window in chronoforms v4 on Joomla 1.7, it turns into a text cursor which does not allow me to click and use the visual editor. Any ideas?

Actually i figured it out... earlier today, I uploaded the email_gh folder, which is part of the ChronoForms v4 actions package, to my form_actions folder of my com_chronoforms folder (path: administrator/components/com_chronoforms/form_actions).., by doing so, it disables the ADD/REMOVE EDITOR link.

Is there any reason why this should be?
GreyHead 24 Aug, 2011
Hi calsnoboarder,

Ah, you found a bug of mine, thank you.

The fix is to open administrator/components/com_chronoforms/form_actions/email_gh/email_gh.ctp and look for a block of code like this around line 44
$doc =& Jfactory::getDocument();
$doc->addScriptDeclaration($script);
if ( JFile::exists(JPATH_SITE.DS.'media'.DS.'editors'.DS.'tinymce'.DS.'jscripts'.DS.'tiny_mce'.DS.'tiny_mce.js') ) {
	$doc->addScript(JURI::root().'media/editors/tinymce/jscripts/tiny_mce/tiny_mce.js');
} else {
	$doc->addScript(JURI::root().'plugins/editors/tinymce/jscripts/tiny_mce/tiny_mce.js');
}
?>

The line starting if ( JFile::exists . . . needs to be changed the the version here. (For info: I was using the URL to check if the file existed and a path is needed. The check is because the file location has changed between Joomla! 1.5 & 1.6/1.7)

I will go update the download now.

Bob
calsnoboarder 31 Aug, 2011
CTP files are cake files yes? I can't seem to get them open with dreamweaver... can you suggest a different editor?
Max_admin 31 Aug, 2011
Hi calsnoboarder,

Yes, CTP files are cake files, but we are just using them here, you can use any text editor to open them, I usually use Notepad++, it lets me change the file language to PHP or anything else easily.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 31 Aug, 2011
Hi calsnoboarder,

In Dreamweaver Edit | Preferences | File Types/Editors and add .ctp in the list in the 'Open in code view' box.

Bob
This topic is locked and no more replies can be posted.