WYSIWYG Field not working with Media Modal

Support General WYSIWYG Field not working with Media ModalResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27006
    John VuJohn Vu
    Participant

    I registered WYSIWYG Field for Media (attachment) post type. Attachment Edit Page work fine but Media Modal not working.

    Please fix this bug soon.

    Best Regrads,

    Note: Code generate from MB Builder:

    add_filter( 'rwmb_meta_boxes', 'wysiwyg-field-for-my-media-modal' );
    
    function wysiwyg-field-for-my-media-modal( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'       => __( 'Mb Media Modal', 'my-dev-blog' ),
            'id'          => 'mb-media-modal',
            'post_types'  => ['attachment'],
            'media_modal' => true,
            'fields'      => [
                [
                    'name' => __( 'Wysiwyg', 'my-dev-blog' ),
                    'id'   => $prefix . 'wysiwyg_18sxbnq6x6',
                    'type' => 'wysiwyg',
                ],
            ],
        ];
    
        return $meta_boxes;
    }
    #27016
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your feedback.

    I've informed the development team to add it to the to-do list for the future development of the plugin.

    #28274
    John VuJohn Vu
    Participant

    Hi @longnguyen,

    I have checked this and ACF plugin is working fine for WYSIWYG Field on Media Modal. But I love to using Meta Box, hope you check and fix this bug soon.

    Best Regrads,

    #35308
    FEDFED
    Participant

    Hi there, is there any update on this issue? I'm trying to use the same feature, but for text, and I'm seeing the same behavior.

      $meta_boxes[] = array(
          'id'       => 'media_credit',
          'title'    => 'Media Credit',
          'post_types'    => array( 'attachment' ),
          'media_modal' => true,
          'fields' => array(
            array(
              'name'  => 'Media Credit',
              'id'    => $prefix . 'media_credit',
              'type'  => 'text',
            ),
          )
        );
    #35329
    Long NguyenLong Nguyen
    Moderator

    Hi FED,

    The field text is working as well on my testing site. Other fields like image fields, WYSIWYG ... that use the JavaScript code to display and manipulate field value do not work with the media modal that also uses JS code to display and save images.

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