WYSIWYG Editor is still broken when using groups
- This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by
Anh Tran.
-
AuthorPosts
-
October 2, 2015 at 8:04 PM #1511
jpomranky
ParticipantI'm sorry to post a new thread, but I have the same problem as the clients before me: the wysiwyg field is broken when using groups. All my fields have unique ID's, I have tested this on a clean WP install with no other plugins than the akismet and the metabox plugins. Can you please help?
Best regards,
Gabriela (from my employer's account)October 3, 2015 at 8:51 PM #1515Anh Tran
KeymasterHi Gabriela,
Can you please post the code you register meta boxes?
October 5, 2015 at 2:12 PM #1518jpomranky
ParticipantYes, of course, here it is:
add_filter( 'rwmb_meta_boxes', 'meta_box_group_demo_register' ); function meta_box_group_demo_register( $meta_boxes ) { $meta_boxes[] = array( 'id' => 'persondetails', 'title' => __( 'Person\'s Details', 'your-prefix' ), 'pages' => array( 'our_attorneys' ), //post type name 'fields' => array( //group array( 'id' => 'lawyers_prof_act', 'name' => __( 'Professional Activity', 'your-prefix' ), 'type' => 'group', // Group type 'clone' => true, // Can be cloned? // List of child fields 'fields' => array( array( 'name' => __( 'Activity Title', 'your-prefix' ), 'id' => 'npm_lw_act_title', 'type' => 'text', 'columns' => 6, ), array( 'name' => __( 'Important Resources', 'your-prefix' ), 'id' => "npm_lw_act_content", 'type' => 'wysiwyg', 'raw' => false, 'options' => array( 'textarea_rows' => 4, 'teeny' => true, 'media_buttons' => false, ), ), array( 'name' => __( 'Shortcode - [attorney-blog-posts category= author= ]', 'your-prefix' ), 'id' => 'npm_att_shortcode', 'type' => 'text', 'columns' => 6, ), ), ), ), );I'm sorry, I should have specified: the wysiwyg editor is broken when using groups WITH the "clone" set to "true" - I do believe it's a js thing but I just can't find it!
Best regards,
GabrielaOctober 5, 2015 at 4:14 PM #1519Anh Tran
KeymasterOh, I see. The WYSIWYG field can't be cloned (both with and without using the group extension). This is a known issue and we haven't had a solution for it yet.
-
AuthorPosts
- The topic ‘WYSIWYG Editor is still broken when using groups’ is closed to new replies.