Custom Fields
Re-Envisioned
Support General The WYSIWYG has white color in the content and missing the toolbar when repeating

This topic contains 15 replies, has 5 voices, and was last updated by  Anh Tran 2 years, 5 months ago.

  • Creator
    Topic
  • #4152

    leminhthienloc
    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

Viewing 10 replies - 1 through 10 (of 15 total)
  • Author
    Replies
  • #4156

    Anh Tran
    Keymaster

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

    #4167

    leminhthienloc
    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

    leminhthienloc
    Participant

    Did you have any updates regarding to this issue?

    #4206

    Anh Tran
    Keymaster

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

    Thanks

    #4211

    leminhthienloc
    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 Meta Box Group plugins.
    I have reverted to the version on the WordPress Plugins site and it’s ok again.

    #4212

    leminhthienloc
    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 Tran
    Keymaster

    Which version of the Group extension are you using?

    #4220

    leminhthienloc
    Participant

    It’s version 1.1.2

    Here is the header of the plugin Meta Box Group
    /**
    * Plugin Name: Meta Box 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 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

    purecobalt
    Participant

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

Viewing 10 replies - 1 through 10 (of 15 total)

You must be logged in to reply to this topic.