Quform v2 wp_editor not working as expected

Home Forums Quform WordPress Quform v2 wp_editor not working as expected

This topic is: resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24262
    TerrenceLP
    Participant

    Following the available Documentation, I get the WP visual editor at the top of the page rather than taking over the desired text area.

    add_action(‘quform_pre_display_4’, function (Quform_Form $form) {

    $content = ”;
    $editor_id = ‘quform_4_5’; // also tried just 4_5 as an ID –

    wp_editor( $content, $editor_id );

    What I also see is an appended random string to the unique id, how is this suppose to work?

    Attachments:
    You must be logged in to view attached files.
    #24264
    TerrenceLP
    Participant

    HTML ID attribute value for the textarea and TinyMCE. Can only be /[a-z]+/

    Ok how to update the unique ID?

    #24317
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #24409
    TerrenceLP
    Participant

    Cool beans and thank you! I will test and let you know –

    What I did to get mine to work was a little jQuery –

    $( “.quform-input-3_21” ).replaceWith( $( “#wp-quform_3_21-wrap” ) );

    So it’s basically moving the Editor where i want.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy