Keyword

Enable JCE Editor in extrafields type selectbox

More
10 years 2 months ago #130109 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.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #130111 by Bruno
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.

Please Log in or Create an account to join the conversation.

More
10 years 2 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.

More
10 years 2 months ago #130113 by Bruno
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.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #130115 by Bruno
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.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #130117 by Bruno
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum