Here’s a fix for Add Media in WYSIWYG field
-
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 thea
element, sodata-editor
attribute is not properly assigned theinput_id
value.I hope this is useful.
Bowo
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Here’s a fix for Add Media in WYSIWYG field’ is closed to new replies.