Re: copy in WebView
Re: copy in WebView
- Subject: Re: copy in WebView
- From: Kyle Sluder <email@hidden>
- Date: Fri, 12 Oct 2012 09:02:37 -0700
On Oct 12, 2012, at 1:47 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
> I managed (using: <body oncopy="return MyJavaScriptFunction()">) to get the selection and modify it (removing unwanted characters) but I do not know how to put the resulting string onto the clipboard.
That should be sufficient to get the right string on the clipboard. You've modified the DOM, and now the browser will copy the text from the DOM to the pasteboard.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden