[Webkit-unassigned] [Bug 189620] New: When pasted content from Word some spaces in the `text/html` clipboard data content are removed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 14 08:20:46 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=189620
Bug ID: 189620
Summary: When pasted content from Word some spaces in the
`text/html` clipboard data content are removed
Product: WebKit
Version: Safari 11
Hardware: Macintosh
OS: macOS 10.13
Status: NEW
Severity: Normal
Priority: P2
Component: Event Handling
Assignee: webkit-unassigned at lists.webkit.org
Reporter: k.krzton at cksource.com
Created attachment 349761
--> https://bugs.webkit.org/attachment.cgi?id=349761&action=review
Test Word file
As in the title, when content is copied from MS Word and then pasted inside browser, clipboard data transfer `text/html` content has some of the spaces removed.
For example:
Having a Word file (attached) with simple italic text, which can be represented like:
<i>Italic</i> text.
When copied, the `html/text` content is represented in a system clipboard with:
<p class=MsoNormal>
<i style='mso-bidi-font-style:normal'>
<span style='mso-ansi-language:PL'>Italic</span>
</i>
<span style='mso-ansi-language:PL'> text.<o:p></o:p></span>
</p>
But when pasted to Safari and accessed on `paste` event via `evt.clipboardData.getData( 'text/html' )` it is returned as:
<p class="MsoNormal" style="margin: 0cm 0cm 8pt...">
<i>
<span>Italic</span>
</i>
<span>text.<o:p></o:p></span>
</p>
When you can see the space is clearly missing.
It works fine on both Chrome and Firefox. Can be easily reproduced on this codepen - https://codepen.io/f1ames/pen/QBVZyM.
Safari version 11.1.2 (13605.3.8).
Microsoft Word version - 16.17 (180909).
See also https://github.com/ckeditor/ckeditor5-paste-from-office/issues/13 where the issue is described too.
--
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/20180914/e0c4b825/attachment-0001.html>
More information about the webkit-unassigned
mailing list