NEW 189620
When pasted content from Word some spaces in the `text/html` clipboard data content are removed
https://bugs.webkit.org/show_bug.cgi?id=189620
Summary When pasted content from Word some spaces in the `text/html` clipboard data c...
Krzysztof
Reported 2018-09-14 08:20:46 PDT
Created attachment 349761 [details] 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.
Attachments
Test Word file (11.78 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-09-14 08:20 PDT, Krzysztof
no flags
Radar WebKit Bug Importer
Comment 1 2018-09-14 09:54:28 PDT
Note You need to log in before you can comment on or make changes to this bug.