• Bowo

    (@qriouslad)


    Hi Matt,

    Thanks for creating and maintaining Custom Fields Suite.

    I found a bug with the Add Media in WYSIWYG field not properly inserting the image/media being selected.

    In WP v6.3.2, I fixed it by editing /includes/fields/wysiwyg.php by adding the following code after line 112:

    $(this).find('button.add_media').attr('data-editor', input_id);

    As the Add Media button in WP 6.3.2 is using the HTML button element instead of the a element, so data-editor attribute is not properly assigned the input_id value.

    I hope this is useful.

    Bowo

Viewing 1 replies (of 1 total)
  • Thank you soooo much for posting this fix!!!!

    I hope it can be included in case there is a new version of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Here’s a fix for Add Media in WYSIWYG field’ is closed to new replies.