The WYSIWYG has white color in the content and missing the toolbar when repeating

Support › General › The WYSIWYG has white color in the content and missing the toolbar when repeating

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #4152
    leminhthienlocleminhthienloc
    Participant

    There is a bug when I am using the WYSIWYG.
    The content is auto white color and there was no toolbar on the 2nd, 4th instance when repeating. Please check the screenshot at http://ctrlv.in/853867

    #4156
    Anh TranAnh Tran
    Keymaster

    Are you using the Group extension? Please post your code to register meta boxes.

    #4167
    leminhthienlocleminhthienloc
    Participant

    Here is the code. Yes, actually, I like to have a group of announcements inside of a company. Each announcement like a post with html including images and other shortcode support (such as embed video).

    $meta_boxes[] = array(
    	        'id'         => 'company_announcements',
    	        'title'      => __( 'Company Announcements', 'imp' ),
    	        'post_types' => array( 'company'),
    	        'context'    => 'normal',
    	        'priority'   => 'low',
    	        'fields' => array(
    	                array(
    	                    'id'   => $prefix.'company_announcement',
    	                    'name' => __( 'Announcement', 'imp' ),
    	                    'type' => 'group',
    	                    'clone' => true,
    	                    'size' => 100,
    	                    'fields' => array(
    	                    	
    	                    	array(
    			                    'id'   => $prefix.'company_announcement_title',
    			                    'name' => __( 'Title', 'imp' ),
    			                    'type' => 'text',
    			                    'size' => 60
    			                ),
    			                array(
    			                    'id'   => $prefix.'company_announcement_date',
    			                    'name' => __( 'Date', 'imp' ),
    			                    'type' => 'date',
    			                    'js_options' => array('dateFormat'=>'dd/mm/yy'),
    			                    'size' => 60
    			                ),
    			                array(
    			                    'id'   => $prefix.'company_announcement_content',
    			                    'name' => __( 'Content', 'imp' ),
    			                    'type' => 'wysiwyg',
    			                    'size' => 60,
    			                    'options' => array(
    			                    	'textarea_rows' => 3,
    			                    )
    			                ),
                        	)
    	                ),
                    ),
    	        'validation' => array(
                    'rules'    => array(
                       
                    )
                )
            );
    #4202
    leminhthienlocleminhthienloc
    Participant

    Did you have any updates regarding to this issue?

    #4206
    Anh TranAnh Tran
    Keymaster

    I've just fixed it on Github. Please download the development version here.

    Thanks

    #4211
    leminhthienlocleminhthienloc
    Participant

    Thanks.
    But after upgrade the meta-box plugin from GitHub, I saw a lot of Notice when generating the fields and then the fields on the Group defined before has turned to Read Only automatically.

    Please see the 2 screenshot for more details:
    - Notice errors: http://ctrlv.in/857001
    - Fields in group auto Read Only: https://ctrlv.in/857000

    So I guess that there something conflict between the Meta Box and MB Group plugins.
    I have reverted to the version on the WordPress Plugins site and it's ok again.

    #4212
    leminhthienlocleminhthienloc
    Participant

    Actually, I have to used an older version of Meta Box, because the Meta Box plugin which I downloaded from the WordPress Plugins panel, generating the same Notices errors.

    #4213
    Anh TranAnh Tran
    Keymaster

    Which version of the Group extension are you using?

    #4220
    leminhthienlocleminhthienloc
    Participant

    It's version 1.1.2

    Here is the header of the plugin MB Group
    /**
    * Plugin Name: MB Group
    * Plugin URI: https://metabox.io/plugins/meta-box-group/
    * Description: Add-on for meta box plugin, allows you to add field type 'group' which put child fields into 1 group which are displayed/accessed easier and can be cloneable.
    * Version: 1.1.2
    * Author: Rilwis
    * Author URI: http://www.deluxeblogtips.com
    * License: GPL2+
    */

    #4231
    Anh TranAnh Tran
    Keymaster

    Please update to the latest version, it's 1.1.5 now. For more info, please follow this guide:

    https://metabox.io/docs/update-extensions/

    #4467
    purecobaltpurecobalt
    Participant

    I am having the same issue and I am on v1.1.6.

    #4476
    Anh TranAnh Tran
    Keymaster

    Hi, can you please post the code you're using to register meta box? The old problem was resolved and I test with the original code in this thread again and it works.

    #4549
    NamennajNamennaj
    Participant

    I have the same issue with v1.1.6. Here is my code:

    $meta_boxes[] = array(
            'title'      => __( 'Legal Area Sections', 'textdomain' ),
            'post_types' => 'page',
            'include'   => array(
                'relation'    => 'OR',
                'template' => array( 'page-legal.php' ),
            ),
    		'fields'     => array(
    			array(
    				'name' => 'Section', // Optional
    				'id' => 'legal_section',
    				'type' => 'group',
    				'clone' => true,
    				// List of sub-fields
    				'fields' => array(
    					array(
    						'id'   => 'title',
    						'name' => __( 'Section Title', 'textdomain' ),
    						'type' => 'text',
    					),
                        array(
                            'id'   => 'content',
                            'name' => __( 'Section Content', 'textdomain' ),
                            'type' => 'wysiwyg',
                        ),
    					// Other sub-fields here
    				),
    			),
    		),
    	);
    #4550
    NamennajNamennaj
    Participant

    @rilwis Just to confirm, my WYSIWYG text is white and the toolbar is missing. See the code above. I am using the Metabox Updater plugin to keep my plug-ins up to date.

    #5719
    jroxburyjroxbury
    Participant

    I have the same issue using:
    Metabox Version: 4.11
    Metabox Group Version: 1.2.1

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