7

I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image)

I dig a little bit into wordpress core in media.php and media-editor.js file in wp-includes but not getting any hint. Please help me, how can I add it.

Thanks in advance.

enter image description here

1 Answer 1

2

I tried to get my head around this yesterday and I came pretty close solving this issue. But i gave up in the end, cause it was getting too complicated, when start thinking about all the tools, that you want to include/exclude. If you still wanna do this on your own, these two filters are your friend: attachment_fields_to_edit & attachment_fields_to_save.

I now solved with the great acf plugin. I just placed a new wysiwyg editor into the attachment page and hide the original caption field via css.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.