<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>12551</bug_id>
          
          <creation_ts>2007-02-02 16:11:17 -0800</creation_ts>
          <short_desc>ER: Make public the API to WebViewEditingInMail</short_desc>
          <delta_ts>2008-03-06 03:54:58 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit API</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="piet">piet.webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>harrison</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29243</commentid>
    <comment_count>0</comment_count>
    <who name="piet">piet.webkit</who>
    <bug_when>2007-02-02 16:11:17 -0800</bug_when>
    <thetext>I&apos;m working on an application that needs to behave like Apple Mail when composing a reply: 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.

To implement this behavior, Apple Mail currently uses a category implemented in WebView, called WebViewEditingInMail, that defines 4 methods, one of which is _insertNewlineInQuotedContent which calls insertParagraphSeparatorInQuotedContent. 

The problem is that WebViewEditingInMail is a private interface, part of WebViewPrivate.h

Could you please make this interface public? Other editor applications might benefit from it too.

Note: the method &apos;_insertNewlineInQuotedContent&apos; expects the quoted content to be within a BLOCKQUOTE with TYPE=&quot;cite&quot;. While the developers of a generic editor might appreciate being able to specify which elements should or should not be broken on the user typing Return, I could very much live with this limitation - no problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29245</commentid>
    <comment_count>1</comment_count>
    <who name="piet">piet.webkit</who>
    <bug_when>2007-02-02 16:24:01 -0800</bug_when>
    <thetext>I understand that a change of API isn&apos;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&apos;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.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72892</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-03-06 03:54:58 -0800</bug_when>
    <thetext>Confirmed as an enhancement request.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>