[webkit-dev] WebView editing in Mail

David Harrison harrison at apple.com
Fri Feb 2 15:30:50 PST 2007

What you are referring to is part of a Mail/WebKit SPI. As such, it is  
undocumented and subject to incompatible change without notice, and we  
highly discourage you from using it. We do encourage you to write a  
bugzilla requesting API support for the functionality you need.


On Feb 2, 2007, at 1:06 PM, piet wrote:

> When composing a reply in Apple Mail, if the user types Return  
> inside the
> quoted message, the quoted content is broken in two parts, the  
> cursor is
> inserted in-between and any character typed by the user is no longer  
> part of
> the quoted content.
> I would like to implement this behavior in an editor.
> So far, I found that:
> - The quoted content must be a BLOCKQUOTE with TYPE="cite".
> - WebView implements a category called WebViewEditingInMail that  
> defines 4
> methods, one of which is _insertNewlineInQuotedContent which calls
> insertParagraphSeparatorInQuotedContent.
> What is the proper way to implement this: should I implement
> shouldInsertText and call _insertNewlineInQuotedContent when the  
> text is
> "\n", or does Apple Mail has some other way to let the WebKit know  
> when to
> insert a paragraph separator?
> ____________________________________________________________________________________
> No need to miss a message. Get email on-the-go
> with Yahoo! Mail for Mobile. Get started.
> http://mobile.yahoo.com/mail
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev

More information about the webkit-dev mailing list