Opened 7 years ago

Last modified 7 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

  1. Open Microsoft word and type the following: "[tab]Test" ([tab] is an actual tab, not the phrase "[tab]").
  2. Select All and Copy the contents from MS Word.
  3. 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>&nbsp;&nbsp;&nbsp; Test</p>

in Linux and

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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

Change History (1)

comment:1 Changed 7 years ago by Jakub Ś

Status: newconfirmed
Version: 4.6.24.6.0

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.

Version 0, edited 7 years ago by Jakub Ś (next)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy