Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User typing doesn't invoke WebEditingDelegate?



Doh! Total newbie mistake. I didn't register the editing delegate.

    [theWebView setEditingDelegate:self];

*smacks head*


On Oct 26, 2005, at 11:55 AM, George Orthwein wrote:

I expected user typing to invoke webView:shouldInsertText:replacingDOMRange:givenAction: since one of the WebViewInsertAction constants is "WebViewInsertActionTyped" but it's apparently not getting called.

I'm using <div contenteditable="true"> to specify certain elements as editable and I want to capture the new text the user types in and possibly filter out any characters that aren't html friendly (although if it's being typed into a web view perhaps that isn't a problem).

Is my expectation wrong? Any examples of these web editing delegates around?

thanks,
George
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >User typing doesn't invoke WebEditingDelegate? (From: George Orthwein <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.