Opened 8 years ago
Last modified 8 years ago
#16990 confirmed Bug
Inconsistent Paste From Word Behavior
Reported by: | Rainer Åhlfors | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Plugin : Paste from Word | Version: | 4.6.0 |
Keywords: | Cc: |
Description
Steps to reproduce
- Open Microsoft word and type the following: "[tab]Test" ([tab] is an actual tab, not the phrase "[tab]").
- Select All and Copy the contents from MS Word.
- When pasting into the CKEditor you get different results when pasting normally (Ctrl-V) compared to when using the Paste from Word dialog.
Expected result
Both methods of pasting the contents should yield the same result. I would also expect a marked up tab to trigger the adding of the text-indent CSS property to the paragraph.
Actual result
When pasting normally, I get:
<p> Test</p>
in Linux and
<p> Test</p>
in Windows.
When pasting using the Paste from Word dialog, I get:
<p>Test</p>
Other details (browser, OS, CKEditor version, installed plugins)
Linux: Firefox ESR 45.8.0, CentOS 6.8, CKE 4.6.2, Paste from Word
Windows: Firefox 53.0, Windows 10, CKE 4.6.2, Paste from Word
The inconsistency was duplicated here: http://ckeditor.com/features
From what I have checked, the difference in number of spaces between Linux and Windows is simply how browsers see it. On Linux you can see 4 spaces and on Windows you can see more than 10. Since editor gets data processed by the browser, there is nothing we can do about this part.
The second problem for which I will confirm this ticket is the Paste from Word Issue. Until version 4.5.11 the PasteFromWord was consistent with standard paste but starting from CKEditor 4.6.0 the filter ignores spaces.