Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    #851010

    Hey deepee,

    What do you mean “with 2 or more editor tiny_mce”, like with several text areas? Can you post some screenshots?

    Best regards,
    Victoria

    #851456

    Hi Victoria,
    i need to have in my custom widget 3 field of TINY MCE
    https://drive.google.com/open?id=0B2hGm__XDxU0UkZQVXZHX0o3R1E

    If 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__XDxU0MUE1b2E5eGVvbm8

    I think the only one i working correctly because i set the field id “content”.

    • This reply was modified 7 years, 2 months ago by deepee.
    #851493

    Hi deepee,

    Well, you can change the id to something else and see if that will work for you.

    Best regards,
    Victoria

    #851514

    I’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, 2 months ago by deepee.
    #852412

    Hi,

    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,
    Ismael

    #852500

    Ok, this i i wanted to know, i can’t actually managed proprerly 2 or more editor in the same shortcode.

    Thanks for the answer

    #852810

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.