ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:How to use WYSIWYG editor as an input field (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How to use WYSIWYG editor as an input field
#2430
admin (Admin)
Admin
Posts: 1514
graphgraph
User Offline Click here to see the profile of this user
Re:How to use WYSIWYG editor as an input field 7 Months, 3 Weeks ago Karma: 22  
Hi danzenie,

Thank you! yes the editor result won't appear this way, you can come over that by using the email template option and add this to your template: $_POST['misc1']

The editor appears for registerd users only I think because of some lines at the top of your template file (and most of template files) :

Code:

<?php if ( $my->id ) { initEditor(); } ?>
try to remove it ?
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you need Registration or profile forms and more then you can try ChronoForms V2.3.8 or up with the new plugins
If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#2434
danzenie (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Re:How to use WYSIWYG editor as an input field 7 Months, 3 Weeks ago Karma: 0  
You're genius Mr. Admin!!!

If I could I would kiss you.... on the cheek.

Now, taking a look at this issue from a use or call to unnecessary resources perspective... While removing the conditional statement around the initEditor() call thats on my template allows me to use the wysiwyg editor in my form, this also means that the call will be issued for each and every page that is viewed on my site. I don't know how much of a resource hog is this function call, but in a generalized sense this does not look like "good" programming practice. So instead of removing the conditional statement, I'm thiking something like

Code:

<?php if ( $my->id || page == "chronoform page") { initEditor(); } ?>
What condition can I use to tell that I'm on the chronoform page?
 
Report to moderator   Logged Logged  
 
Frank Costello: How's your mother?
Man in Bar: She's on her way out.
Frank Costello: We all are, act accordingly.
-------------------------- http://joomlathug.com
  The administrator has disabled public write access.
#2436
admin (Admin)
Admin
Posts: 1514
graphgraph
User Offline Click here to see the profile of this user
Re:How to use WYSIWYG editor as an input field 7 Months, 3 Weeks ago Karma: 22  
Thanks danzenie

it should be something like this : $option == 'com_chronocontact'

Best regards,

Max
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you need Registration or profile forms and more then you can try ChronoForms V2.3.8 or up with the new plugins
If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#2440
danzenie (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Re:How to use WYSIWYG editor as an input field 7 Months, 3 Weeks ago Karma: 0  
Done!!

Form is working perfectly with JCE, and I get the editor's content in my email. This is great!!! Hope this thread helps others.
 
Report to moderator   Logged Logged  
 
Frank Costello: How's your mother?
Man in Bar: She's on her way out.
Frank Costello: We all are, act accordingly.
-------------------------- http://joomlathug.com
  The administrator has disabled public write access.
#2446
admin (Admin)
Admin
Posts: 1514
graphgraph
User Offline Click here to see the profile of this user
Re:How to use WYSIWYG editor as an input field 7 Months, 3 Weeks ago Karma: 22  
Great, Thanks Danzenie!!

Max
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you need Registration or profile forms and more then you can try ChronoForms V2.3.8 or up with the new plugins
If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8090
Campbell (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:How to use WYSIWYG editor as an input field 1 Week, 1 Day ago Karma: 0  
Hi,

I am using fckeditor and would like to keep using it.

But I am a bit of a dumbo about where to add the code to enable the editor.
I am scared to change the code as I might lock myself out....

I place the code in the admin template?
Which one the system.php or component.php?
For example I am in: H:\webserver\Joomla15\administrator\templates\system\

Am I even in the right place? Or should I be in the chrono directory: H:\webserver\Joomla15\components\com_chronocontact\


Told ya I was dumb!

Thanks
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials