[Webkit-unassigned] [Bug 143776] Custom copy and cut does not work on iOS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 15 08:24:44 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=143776
--- Comment #1 from Piotr Jasiun <p.jasiun at cksource.com> ---
The sample code:
<html>
<head>
<title>Custom copy cut</title>
<meta charset="utf-8">
</head>
<body>
<div contenteditable="true" cols="80" id="editor" rows="10">Foo bar bom</div>
<script>
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();
}
</script>
</body>
</html>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150415/2141d9ea/attachment-0001.html>
More information about the webkit-unassigned
mailing list