[wp-trac] [WordPress Trac] #26681: Allow HTML in selection captured with Press This bookmarklet

WordPress Trac noreply at wordpress.org
Thu Dec 19 10:32:57 UTC 2013


#26681: Allow HTML in selection captured with Press This bookmarklet
-------------------------+-----------------------------
 Reporter:  grosbouff    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Press This   |    Version:  3.8
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Hi, since a few weeks I'm using the Press This bookmarklet, which is, I
 think, an underestimated function of WP.

 I like websites like ''Pinterest, Springpad or LoveIt'', but i'm not
 trusting them and I want to do what I want with the "pins" I save : I
 would like to save them on my WP, not on an external service.

 For example, I had a ''LoveIt'' account and they just said they were
 shutting down their service, 2 weeks before doing it, and without any tool
 to help users backup their account. (hopefully I had already created a WP
 plugin to backup it : http://wordpress.org/plugins/loveitcom-importer/)
 Pinterest is great but only allows 3 private albums...  I don't like when
 websites are forcing me to do what I don't want : share my stuff.

 I think Wordpress COULD and SHOULD propose an alternative to those
 services, and only one thing is missing for this : the ability to capture
 HTML and not only text.
 This is a HUGE difference !

 "Press This" could work as actually (get selection then load it in the
 popup window); but having a filter hook on the HTML selection would allow
 plugins to act on the selection captured :
 WP would, by default,  santize the selection with a filter hook to output
 simple text, but having this hook would allow plugins to act on the
 selection captured:

 plugins could

 * allow certain html tags (em, bold, stroke, img, a, ...) instead of
 having "pure" text,
 * download remote medias found in the captured code,
 * Set appropriate post format depending on what is captured,
 * Change how the popup displays and have a wizard instead of the actual
 press this page;

 I already send this as a Wordpress Idea  (http://wordpress.org/ideas/topic
 /improve-press-this-bookmarklet), sorry to post here but I'm sure would be
 a great feature and i'm surprised nobody seems to have talked about this
 already.

 I had once started to develop my own plugin to achieve this, but it was
 really difficult to make as there are not much hooks in the "Press This"
 code, and above all, because WP is capturing text and not code.
 Changing this would make things really easier.

 Thanks a lot, hope you'll like the idea !

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26681>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list