Cloneable group with WYSIWYG

Support MB Group Cloneable group with WYSIWYG

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #3813
    wefit.lucaswefit.lucas
    Participant

    Hello, I'm having trouble with the WYSIWYG field.
    I have a cloneable group with 2 text inputs and a wysiwyg field. The WYSIWYG in the first group is not rendering properly (the tabs Visual and Text are there, but not the rest), but if I add a clone, the second one will work just fine. I've tried reloading the page, but still nothing.

    Thanks.

    #3817
    Anh TranAnh Tran
    Keymaster

    Can you post your code to test?

    Thanks
    Anh

    #3824
    wefit.lucaswefit.lucas
    Participant

    Apparently the problem starts on the second level group:

    $meta_boxes[] = array(
          'title'      => __( 'Content', 'textdomain' ),
          'id'         => 'myContent',
          'post_types' => 'rep_page',
          'fields'     => array(
            //----  Select Component Type Metabox  ----//
            array(
              'id' => 'content',
              'type' => 'group',
              'clone' => true,
              'sort_clone' => true,
              'fields' => array(
                array(
                  'id'   => 'myTitle',
                  'name' => __( 'Title', 'textdomain' ),
                  'type' => 'text',
                  'placeholder' => 'Title',
                ),
                array(
                  'id'   => 'myText',
                  'name' => __( 'Text', 'textdomain' ),
                  'type' => 'wysiwyg',
                  'options' => array(
                    'media_buttons' => false,
                    'textarea_rows' => 6,
                    'teeny' => true,
                  ),
                ),
                array(
                  'id'   => 'myGroup',
                  'type' => 'group',
                  'clone' => true,
                  'sort_clone' => true,
                  'fields' => array(
                    array(
                      'id'   => 'myText2',
                      'name' => __( 'Text', 'textdomain' ),
                      'type' => 'wysiwyg',
                      'options' => array(
                        'media_buttons' => false,
                        'textarea_rows' => 6,
                        'teeny' => true,
                      ),
                    ),
                  ),
                ),
              ),
            ),
          ),
        );
    #3826
    Anh TranAnh Tran
    Keymaster

    Hi,

    I tested your code and saw the bug. It relates with the unique ID attribute for the editors which is a technical challenge at the moment. I will keep trying and release a fix as soon as I find a solution.

    Thanks

    #3893
    FEDFED
    Participant

    I'm also in need of a solution to this issue. If possible, an ideal fix would work for any level of group-nesting.

    Thanks!

    #4045
    FEDFED
    Participant

    Hi Anh,

    Any updates on this issue?

    Thanks

    #4049
    Anh TranAnh Tran
    Keymaster

    Hi FED, the bug is complicated and I haven't found a good solution yet. I will let you know as soon as I find a way.

    Thanks
    Anh

    #46626
    Grzegorz SidorGrzegorz Sidor
    Participant

    Has anyone solved this problem? Because I have one that works in one clonable group, but when I want to add another clonable group to the clonable group, then wysiwig doesn't start in it. You can only click the text tab and refresh the page. Only then can you edit the content, but no buttons appear anyway.

    #46651
    Kulcsár PeterKulcsár Peter
    Participant

    This should be priority to solve the issue! I am stuck because of it.
    Also the Post - Select Advanced / Multiple field is not working. So we can't change the selected post.
    And there are performance issues too, the load of the editor when there are more WYSIWYG editors loaded increases significally.
    https://snipboard.io/joRpuX.jpg

    #46653
    FEDFED
    Participant

    We are still (years later!!!) seeing significant performance impacts due to this problem and we have not found a solution.

    #46654
    FEDFED
    Participant

    Somewhat related: Is there any way to access older versions of MB Group? Were seeing way more serious issues like this more recently than we have in the past, and I'd like to roll back. However, I can't. We are installing via Composer (that's a known issue) but I also can't find anywhere to download the the older versions of the plugin.

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