Forums

How to enable custom editor in HTML fields

abletech 19 Sep, 2011
Hello, i'm using ChronoForms 4 RC2 on Joomla 1.5.23.

In Joomla I configured JCE as default editor, instead of classic TinyMCE.

But, when I configure an "Header" field to a form, and I click to "Add/remove editor", it uses the classic editor and not JCE.

There is any way to use JCE as editor in ChronoForms? It would be useful i.e. for uploading images, inserting advances links, selecting styles, and so on...

Thanks
GreyHead 19 Sep, 2011
Hi abletech,

Not that I know of - at least not without hacking the code. Max chose to use JCE in ChronoForms v3 for some technical reason and I guess that he's carried that over to CFv4.

Bob
abletech 20 Sep, 2011
I found that TinyMCE initialization code is in file:
/administrator/components/com_chronoforms/form_actions/email/email.ctp

Removing this code, the editor stop working also in Header field.

It seems very strange to have a code globally used in a specific CTP file of a form action...

I would suggest to move it to a generic file, like the form_wizard view.

However for enabling JCE, I tried removing the Javascript referring TinyMCE in the email.ctp file, using something like this in html_helper.php, inside "textarea" case:


$wysiwyg = & JFactory::getEditor();
$output .= $wysiwyg->display($tag["name"], $tag["value"] '100%', '400', $tag["cols"], $tag["rows"]);


The JCE editor shows up, but it does not work.

I think you should consider using similar code, because it's the standard way in Joomla.
GreyHead 20 Sep, 2011
Hi AbleTech,

The JCE editor shows up, but it does not work.

That may be why Max chose not to use it?

Bob
abletech 20 Sep, 2011
Yes, it may be.

But, I'm not proposing to use "a specific editor like JCE", but the Joomla standard way to load editors, so that each user can found his preferred editor also inside ChronoForms.
This topic is locked and no more replies can be posted.