I am working on a internal plugin to preview content from attachments within a post. Could you please help me with the following questions:
- What is the proper way for a plugin to serve JavaScript / CSS assets for a preview
<iframe>
that is going to be displayed after the attachment link? - Is there a plugin API to access attachment contents directly instead of accessing through HTTP(s) to bypass the dreaded
XHR not allowed
error? Can we access the controller directly to reuse it?