Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Easy image embeds #39

Closed
mjangda opened this Issue · 4 comments

4 participants

@mjangda
Owner

I should be able to paste an image URL on its own line and have it automagically embed.

@danielbachhuber

Maybe this should actually be oEmbed support for more services through Jetpack?

@mjangda
Owner

Embed might be the wrong word. I want something like the following:

http://bios.weddingbee.com/pics/148769/Lolcat7.jpg

to get turned into:

<img src="http://bios.weddingbee.com/pics/148769/Lolcat7.jpg" />

@Viper007Bond

I'd recommend using wp_embed_register_handler() to do this. Just have a low priority (high number) and match known extensions.

@nb nb closed this issue from a commit
@nb nb Add an image URL handler
Converts lone image URLs to image tags.

Fixes #39.
186ea96
@nb nb closed this in 186ea96
@nb
Owner
nb commented

@Viper007Bond thanks for the pointer, it saved me lots of time digging around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.