I recently worked on a case in the WordPress block editor in which I needed to add support for clipboard events in a media iframe. In this case, the iframe was being used inside a custom version of wp.media.view.MediaFrame. While wp.media.view does not natively support custom attributes on iframes, we can create our own custom …
Continue reading “WordPress Media Iframe With Custom Attributes”