I have made several updates to Bookmarklet that I want to share with you guys. I hope I can fiddle this GIT stuff out (worked only with the Drupal CVS before), so these changes might be in the next dev-build. Here is what I got:

  • Users can now pick a CCK textfield which gets the selected text (instead of body, which will be chosen as fallback)
  • The selected text is inserted as HTML-Code (so images, etc. show up) - this feature is implemented through Rangy
  • The bookmarklet iframe is now auto-resizing (live, so you can have resizeable textareas) and not modal anymore
  • Fixed #1154616: Won't display default node type

Comments

Anonymous’s picture

How can I help you create a patch? I'm in IRC right now as bangpound.

japanitrat’s picture

StatusFileSize
new46.19 KB

Here is the patch

japanitrat’s picture

StatusFileSize
new47.38 KB

Fixed a missing jQuery assignment. Also added:

  • Converts image- and link-paths in selected html portions to absolute paths.
  • Removes unwanted elements like script-tags, and so on.
attiks’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #3 is working fine for me, i only got some warnings about white space, but nice work