Support Forum
Support › General › The WYSIWYG has white color in the content and missing the toolbar when repeating
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
Are you using the Group extension? Please post your code to register meta boxes.
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(
)
)
);
Did you have any updates regarding to this issue?
I've just fixed it on Github. Please download the development version here.
Thanks
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.
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.
Which version of the Group extension are you using?
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+
*/
Please update to the latest version, it's 1.1.5 now. For more info, please follow this guide:
I am having the same issue and I am on v1.1.6.
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.
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
),
),
),
);
@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.
I have the same issue using:
Metabox Version: 4.11
Metabox Group Version: 1.2.1