Allow HTML in selection captured with Press This bookmarklet
|Reported by:||grosbouff||Owned by:|
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:
- 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 !