Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

jon.sig on "send_to_editor"

$
0
0

Hey guys,

I'm working on a plugin.
It creates a new media_upload_tab and runs a code where an image is added to the gallery with media_sideload_image.
Now I would like to put this image (the html code generated) in the editor where my cursor was (just like the standard image inserting function) and close the iframe.

Can you help me with this?
Is there a function to add code to the editor in the parent element?

Thanks,
Jonas


Viewing all articles
Browse latest Browse all 8245

Trending Articles