Front end Tiny Mice editor in text area

bowman9991 09 Oct, 2011
I'd like to include the Tiny Mice WYSIWYG editor in the front end in a text area. Can anyone explain how this is done? I've come across a few posts that include snippets of both HTML and PHP code, but I have no idea where to add them! (and not sure if things have changed in the most recent version of Chronoforms).

Any help appreciated.

Thanks,

John
GreyHead 09 Oct, 2011
Hi John,

Sorry. no idea. It can probably be done in a Custom Code element. What code is needed to show a Tiny Mice editor?

Bob
bowman9991 09 Oct, 2011
Actually, doesn't have to be tiny mice. Just any editor really. I use JCE. Someone posted these snippets but I have no idea where it would go! Then I guess there has to be some HTML to place in the Form code (I know where that is at least). Any idea where the PHP would go?

Thanks

John

<?php
$editor =& JFactory::getEditor();
echo $editor->display( 'text_1', '{text_1}', '100%', '200', '75', '10', false); 
?>
GreyHead 09 Oct, 2011
Hi John,

That look like the right code. Please try putting it into a Custom Code element (in ChronoForms v4), or add it to the Form HTML in ChronoForms v3.

I just checked in CFv4 and it works OK (just a bit wide for the page).

Bob
shrabanti 09 Jan, 2012
Dear John aka bowman9991,

Thank you for the detail code. Chrono Form is really great.
@GreyHead: I have added it to the HTML area in version 3 and
it worked like charm. Thanks again.😀
This topic is locked and no more replies can be posted.