[webkit-dev] WebView editing in Mail
piet
piet.webkit at yahoo.com
Fri Feb 2 16:18:52 PST 2007
I understand that a change of API isn't likely to happen anytime soon, so
could someone in the Apple Mail team please suggest me her/his best bet as
of how to implement this behavior?
Rest assured that if it's broken one day by a change of your private APIs,
it will not crash our application, just degrade a little bit its behavior,
so no big problem.
--- David Harrison <harrison at apple.com> wrote:
> 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.
>
> Dave
>
> 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?
> >
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
More information about the webkit-dev
mailing list