Metabox group wysiwyg

Support MB Group Metabox group wysiwyg

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15961
    Mr Jon MarksMr Jon Marks
    Participant

    There is an inconsistency between WYSIWYG in normal fields and in repeater/group fields. In group fields RWMB_Wysiwyg_Field::value() should be called for WYSIWYG get similar to how RWMB_File_Field::value() is called for files or images.

    #15962
    Mr Jon MarksMr Jon Marks
    Participant

    Something like

         foreach ( $child_fields as $child_field ) {
                if ( $child_field['type'] === 'wysiwyg') {
                    $new[$child_field['id']] = RWMB_Wysiwyg_Field::value( $new[$child_field['id']], $old, $post_id, $child_field );
                } elseif ( in_array( $child_field['type'], array( 'file', 'image' ) ) ) {
                    $value = RWMB_File_Field::value( '', '', $post_id, $child_field );
                    $new[ $child_field['id'] ] = $value;
                }
            }

    on line 252 of class-rwmb-group-field.php

    #16002
    Anh TranAnh Tran
    Keymaster

    Hi,

    The file field requires extra code to handle the file uploads. What do you need from wysiwyg field?

    #16041
    Mr Jon MarksMr Jon Marks
    Participant

    A normal wysiwys shows html tags. A wysiwyg in a group does not.

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