Re: copy in WebView
Re: copy in WebView
- Subject: Re: copy in WebView
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 12 Oct 2012 00:19:18 +0700
On 12 Oct 2012, at 00:11, Kyle Sluder <email@hidden> wrote:
> On Oct 11, 2012, at 10:00 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
>>
>> On 11 Oct 2012, at 23:45, Kyle Sluder <email@hidden> wrote:
>>
>>> On Oct 11, 2012, at 8:26 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
>>>
>>>> I have a WebView which displays text which contains some invisible characters (like ZERO WIDTH SPACE).
>>>> When I use Edit→Copy these characters are also put on the pasteboard.
>>>>
>>>> But this does not make sense. The pasteboard should contain the selected text without these invisible characters.
>>>
>>> I challenge this statement. The user selected those characters. They should therefore be copied.
>>
>> Ok. New version:
>> This generally makes sense. But in my special case the pasteboard should contain the selected text without these invisible characters.
>
> Can you inject a JavaScript into the page that strips the characters before putting them on the pasteboard?
I have no experience with JavaScript. And no idea how to start.
I was hoping to just use subclassing and/or delegates.
Gerriet.
_______________________________________________
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