<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Custom copy and cut does not work on iOS"
   href="https://bugs.webkit.org/show_bug.cgi?id=143776#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Custom copy and cut does not work on iOS"
   href="https://bugs.webkit.org/show_bug.cgi?id=143776">bug 143776</a>
              from <span class="vcard"><a class="email" href="mailto:p.jasiun&#64;cksource.com" title="Piotr Jasiun &lt;p.jasiun&#64;cksource.com&gt;"> <span class="fn">Piotr Jasiun</span></a>
</span></b>
        <pre>The sample code:

&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Custom copy cut&lt;/title&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div contenteditable=&quot;true&quot; cols=&quot;80&quot; id=&quot;editor&quot; rows=&quot;10&quot;&gt;Foo bar bom&lt;/div&gt;
&lt;script&gt;
    editor.addEventListener( 'copy', copyCutListener );
    editor.addEventListener( 'cut', copyCutListener );
        function copyCutListener( evt ) {
        evt.clipboardData.setData( 'text/html', 'xxx' );
        evt.clipboardData.setData( 'text/plain', 'xxx' );
        evt.preventDefault();
    }
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>