- Posts: 11
COMMUNITY FORUM
Enable JCE Editor in extrafields type selectbox
- Bruno
-
Topic Author
- Offline
- New Member
Less
More
10 years 10 months ago #130109
by Bruno
Enable JCE Editor in extrafields type selectbox was created by Bruno
Hi everyone,
What I want to do is to be able to use jce editor on the creation of an extrafield.
When I use extrafield type selectbox, I'd like every each of the options to have an editor so I could set content with customization to it,
then I would pick wich options I'd want on each k2 item.
How can I do this? any ideas?
Thanks in advance, Bruno.
What I want to do is to be able to use jce editor on the creation of an extrafield.
When I use extrafield type selectbox, I'd like every each of the options to have an editor so I could set content with customization to it,
then I would pick wich options I'd want on each k2 item.
How can I do this? any ideas?
Thanks in advance, Bruno.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #130110
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Enable JCE Editor in extrafields type selectbox
Hello Bruno,
The selectbox is an HTML <select> element, this is its behaviour.
JCE can only be used in textareas.
What you want to achieve should be done with a selec tbox and a textarea (this is where JCE comes in) underneath it. If the user can't find an option then he can add one of its own in the textarea.
The selectbox is an HTML <select> element, this is its behaviour.
JCE can only be used in textareas.
What you want to achieve should be done with a selec tbox and a textarea (this is where JCE comes in) underneath it. If the user can't find an option then he can add one of its own in the textarea.
Please Log in or Create an account to join the conversation.
- Bruno
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 11
10 years 10 months ago #130111
by Bruno
Replied by Bruno on topic Re: Enable JCE Editor in extrafields type selectbox
Thanks for replying
I understand what you're saying, but what I want to achieve is it to be possible for me to set up some content with html in extra fields, so that our client may be able to select the options he wants to show for each Item.
I need it to be possible to have a textarea, with an editor, displayed in a selectbox type extrafield, that way I could edit it with html the all options, and the client would only pick the ones he wants for that item.
can you help me with this? do you have any kind of hack for it?
Thanks, Bruno.
I understand what you're saying, but what I want to achieve is it to be possible for me to set up some content with html in extra fields, so that our client may be able to select the options he wants to show for each Item.
I need it to be possible to have a textarea, with an editor, displayed in a selectbox type extrafield, that way I could edit it with html the all options, and the client would only pick the ones he wants for that item.
can you help me with this? do you have any kind of hack for it?
Thanks, Bruno.
Please Log in or Create an account to join the conversation.
- Kostas Chasiotis
-
- Offline
- New Member
Less
More
- Posts: 2
10 years 10 months ago #130112
by Kostas Chasiotis
Replied by Kostas Chasiotis on topic Re: Enable JCE Editor in extrafields type selectbox
You should not do this, as it will not be valid HTML. Read here developer.mozilla.org/en-US/docs/Web/HTML/Element/option. Plain text inside option field only.
Please Log in or Create an account to join the conversation.
- Bruno
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 11
10 years 10 months ago #130113
by Bruno
Replied by Bruno on topic Re: Enable JCE Editor in extrafields type selectbox
humm and if those values on the select box are like variables that contain the html inputed on the extrafield?
I really need this to work somehow, any ideas?
thanks.
I really need this to work somehow, any ideas?
thanks.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #130114
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Enable JCE Editor in extrafields type selectbox
It is possible to use the select box as a trigger and load the value in your textarea depending on the user's selection.
You have to write a simple jQuery script that handles the change event of the select field.
You have to write a simple jQuery script that handles the change event of the select field.
Please Log in or Create an account to join the conversation.
- Bruno
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 11
10 years 10 months ago #130115
by Bruno
Replied by Bruno on topic Re: Enable JCE Editor in extrafields type selectbox
Humm that sounds great!
I use K2 since ever but I'm not sure if I have the knowledge to perform this..
Do you guys support this kind of things? Because I'll need some help to make this work!
Thanks for your help, Bruno.
I use K2 since ever but I'm not sure if I have the knowledge to perform this..
Do you guys support this kind of things? Because I'll need some help to make this work!
Thanks for your help, Bruno.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #130116
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Enable JCE Editor in extrafields type selectbox
Hello Bruno,
While I personally I cannot assist you there are several developers in this forum that have the ability to assist you on this.
While I personally I cannot assist you there are several developers in this forum that have the ability to assist you on this.
Please Log in or Create an account to join the conversation.
- Bruno
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 11
10 years 10 months ago #130117
by Bruno
Replied by Bruno on topic Re: Enable JCE Editor in extrafields type selectbox
oh ok, so should I move this to another section? Or just wait for an answer? :)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #130118
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Enable JCE Editor in extrafields type selectbox
I would suggest that you posted the job in a new topic so more users will be able to see it.
Please Log in or Create an account to join the conversation.