Custom Fields
Re-Envisioned
Support Meta Box Group Metabox group wysiwyg

This topic contains 3 replies, has 2 voices, and was last updated by  Mr Jon Marks 1 month ago.

  • Creator
    Topic
  • #15961

    Mr 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #15962

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

    Hi,

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

    #16041

    Mr Jon Marks
    Participant

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

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.