This may be really simple, since I can't use window.getSelection on iPhone Safari, I was wondering if I could put the selection in the clipboard and use a bookmarklet to send it to Drafts (among with location.href)
The first part of the equation is quite simple:
javascript:window.location='drafts://x-callback-url/create?text='+encodeURIComponent(location.href+'%5Cn%5Cn')
As I'm a rookie, I interpreter this "create a new document in Drafts and append the current window link to the top and press return twice", now I just need to add the contents from the clipboard into this.
If I simply use the Drafts short [[clipboard]]
to add the clipboard, it won't work. So I'm suspicious that I'll need a Java solution. Ideas?