[Webkit-unassigned] [Bug 178776] clipboardData.setData doesn't work on iPhone and iPad

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 25 11:12:26 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=178776

--- Comment #3 from Vladislav Deev <vladislav.deev742 at gmail.com> ---
However, when i trying to add my data with help this "clipboardData.setData", then "clipboardData.getData" sending just a empty string.
Is there any chance that bug is still existing?
if not, and it is now fixed, would you help with my code?I thought i wrote right, but now i'm doubting.
There's the part, where happens adding text:

 event.preventDefault ? event.preventDefault() : event.returnValue = false;
 var _newLine = '\n';
 var _pagelink = '\u00A9 ' + _escapeHTML();
 var _copytext =  getSelection() + _newLine + _pagelink;

 event.clipboardData.setData('Text', _copytext);

And is there a function, which can to send data to clipboard for the same situation?

P.S. Sorry for my weak English and code, i'm still began learning Javascript:)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171025/4fc05eb2/attachment.html>


More information about the webkit-unassigned mailing list