-
AuthorPosts
-
September 12, 2017 at 11:05 am #850944
Hi all,
i need to create a shortcode with 2 or more editor tiny_mce.I’ve seen this function
function shortcode_handler($atts, $content = “”, $shortcodename = “”, $meta = “”)
permits to use only one $content.Actually i’m using with succes my custom shortcodes with only one editor tiny_me,
i need to understand how can i use more the one in the same shortcode.Thanks in advance.
September 12, 2017 at 2:21 pm #851010Hey deepee,
What do you mean “with 2 or more editor tiny_mce”, like with several text areas? Can you post some screenshots?
Best regards,
VictoriaSeptember 13, 2017 at 9:22 am #851456Hi Victoria,
i need to have in my custom widget 3 field of TINY MCE
https://drive.google.com/open?id=0B2hGm__XDxU0UkZQVXZHX0o3R1EIf i set the content using the editor, adding titles, setting bold, etc…
Only one of these 3 fields is correct, the others 2 i see the html code
https://drive.google.com/open?id=0B2hGm__XDxU0MUE1b2E5eGVvbm8I think the only one i working correctly because i set the field id “content”.
- This reply was modified 7 years, 3 months ago by deepee.
September 13, 2017 at 10:23 am #851493Hi deepee,
Well, you can change the id to something else and see if that will work for you.
Best regards,
VictoriaSeptember 13, 2017 at 11:00 am #851514I’ve already did it,
the working editor has id = content
the others have respectively content1, content2,i think there is a limitation in this function
function shortcode_handler($atts, $content = “”, $shortcodename = “”, $meta = “”)
There is only one parameter called $content, i think it should be an array.
What do you think?
How can manage two or more editors without have these problems about HTML markup in the back end?
Best Regard
- This reply was modified 7 years, 3 months ago by deepee.
September 15, 2017 at 9:02 am #852412Hi,
If you’re editing the textblock.php file or the text block element, just duplicate this block of code then adjust the id.
array( "name" => __("Content",'avia_framework' ), "desc" => __("Enter some content for this textblock",'avia_framework' ), "id" => "content", "type" => "tiny_mce", "std" => __("Click here to add your own text", "avia_framework" ) ),
UPDATE: I tested this modification and it does render another editor but it’s not updating properly. The shortcodes can handle only one editor at the moment.
Best regards,
IsmaelSeptember 15, 2017 at 11:32 am #852500Ok, this i i wanted to know, i can’t actually managed proprerly 2 or more editor in the same shortcode.
Thanks for the answer
September 16, 2017 at 6:48 am #852810Hi,
I’m sorry but this modification is beyond the scope of support. Please hire a freelance developer or contact our partner, Codeable.
// http://kriesi.at/contact/customization
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.