• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: copy in WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: copy in WebView
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: copy in WebView (From: Kyle Sluder <email@hidden>)
 >Re: copy in WebView (From: Kyle Sluder <email@hidden>)
 >Re: copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: custom slider for video trimming application
  • Next by Date: Re: How to programmatically detect that Mission Control is running?
  • Previous by thread: Re: copy in WebView
  • Next by thread: Re: copy in WebView
  • Index(es):
    • Date
    • Thread