[wp-hackers] Return Selected Image

Computer Guru computerguru at neosmart.net
Sun Dec 24 09:35:23 GMT 2006


Technically an image *is* text, right? It's an <img> tag, so you should just
grab the HTML and use PHP string functions to grab the image source from the
img tag.

Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/


> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
> bounces at lists.automattic.com] On Behalf Of ryan fitzer
> Sent: Sunday, December 24, 2006 9:16 AM
> To: wp-hackers at lists.automattic.com
> Subject: [wp-hackers] Return Selected Image
> 
> I'm very new to writing plugins (actually just altering) and I'm trying
> to
> figure out how to return a selected image wrapped in a span element in
> the
> rich text editor. I've got selected text working by using $selectedtext
> ,
> but what about when a user selects and image in a post? Thanks for your
> help.
> 
> --
> Ryan Fitzer
> Dallas, TX
> http://www.ryanfitzer.com
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list