Support Forum ยป User Profile

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: WYSIWYG Not Working Properly #43459
    Adsolut Web AgencyAdsolut Web Agency
    Participant

    Is this fixed yet ?
    i am using AIO to create wysiwyg blocks. they are not under groups but in tabs. the visual editor works as expected but when switched to the text editor, the editor becomes non-clickable and nothing can by typed in it anymore.

    Metabox: 5.8.1
    AIO : 1.23.1
    Wordpress : 6.3.1

    the generated php code is as follows

    
    <?php
    add_filter( 'rwmb_meta_boxes', 'qualiv_reports_constructions' );
    
    function qualiv_reports_constructions( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'      => __( 'Report Single - Construction - Content', 'qualiv' ),
            'id'         => 'report-single-content',
            'post_types' => ['reports'],
            'include'    => [
                'relation'      => 'OR',
                'report-layout' => [30],
            ],
            'tabs'       => [
                'main'              => [
                    'label' => 'Main',
                    'icon'  => '',
                ],
                'collaborators-tab' => [
                    'label' => 'Collaborators',
                    'icon'  => '',
                ],
                'split_content_tab' => [
                    'label' => 'Split Content',
                    'icon'  => '',
                ],
                'timeline_tab'      => [
                    'label' => 'Timeline',
                    'icon'  => '',
                ],
            ],
            'fields'     => [
                [
                    'name'        => __( 'Info Table', 'qualiv' ),
                    'id'          => $prefix . 'info_table',
                    'type'        => 'group',
                    'collapsible' => true,
                    'group_title' => '{label}',
                    'clone'       => true,
                    'sort_clone'  => true,
                    'fields'      => [
                        [
                            'name'     => __( 'Label', 'qualiv' ),
                            'id'       => $prefix . 'label',
                            'type'     => 'text',
                            'columns'  => 4,
                            'datalist' => [
                                'id'      => '65224c4e372c9',
                                'options' => [
                                    'Address
    ',
                                    'Size of Plot
    ',
                                    'Construction Volume
    ',
                                    'Timeline',
                                ],
                            ],
                        ],
                        [
                            'name'    => __( 'Content', 'qualiv' ),
                            'id'      => $prefix . 'content',
                            'type'    => 'textarea',
                            'rows'    => 2,
                            'columns' => 8,
                        ],
                    ],
                    'tab'         => 'main',
                ],
                [
                    'name'       => __( 'Collaborators Title', 'qualiv' ),
                    'id'         => $prefix . 'collaborators_title',
                    'type'       => 'text',
                    'std'        => 'Collaborators',
                    'save_field' => false,
                    'tab'        => 'collaborators-tab',
                ],
                [
                    'name' => __( 'Collaborators', 'qualiv' ),
                    'id'   => $prefix . 'collaborators_carousel',
                    'type' => 'image_advanced',
                    'tab'  => 'collaborators-tab',
                ],
                [
                    'name'              => __( 'Left Block', 'qualiv' ),
                    'id'                => $prefix . 'left_side_description',
                    'type'              => 'wysiwyg',
                    'options'           => [
                        'textarea_rows' => 8,
                        'media_buttons' => false,
                    ],
                    'sanitize_callback' => 'none',
                    'tab'               => 'split_content_tab',
                ],
                [
                    'name'              => __( 'Right Block', 'qualiv' ),
                    'id'                => $prefix . 'right_side_description',
                    'type'              => 'wysiwyg',
                    'options'           => [
                        'textarea_rows' => 8,
                        'media_buttons' => false,
                    ],
                    'sanitize_callback' => 'none',
                    'tab'               => 'split_content_tab',
                ],
                [
                    'name'       => __( 'Timeline Title', 'qualiv' ),
                    'id'         => $prefix . 'timeline_title',
                    'type'       => 'text',
                    'std'        => 'Timeline',
                    'columns'    => 6,
                    'save_field' => false,
                    'tab'        => 'timeline_tab',
                ],
                [
                    'name'    => __( 'Timeline Image', 'qualiv' ),
                    'id'      => $prefix . 'timeline_image',
                    'type'    => 'single_image',
                    'columns' => 6,
                    'tab'     => 'timeline_tab',
                ],
            ],
        ];
    
        return $meta_boxes;
    }
Viewing 1 post (of 1 total)