Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#6484 closed Bug (invalid)

BIDI: Incorrect alignment is applied when copying & pasting RTL content from Word

Reported by: James Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 3.4.1
Keywords: IBM Cc: Damian, joek, Satya Minnekanti

Description

Steps to Reproduce the defect:

  1. Open the Ajax sample.
  2. Copy & Paste the content from the attached Word document.

Expected:
Line 1: has language direction of LTR & is aligned left.
Line 2: has language direction of LTR & is aligned centre.
Line 3: has language direction of LTR & is aligned right.
Line 4: has language direction of LTR & is aligned justified.
Line 5: has language direction of RTL & is aligned left.
Line 6: has language direction of RTL & is aligned centre.
Line 7: has language direction of RTL & is aligned right.
Line 8: has language direction of RTL & is aligned justified.

Actual: Line 5: has language direction of RTL & is aligned RIGHT.

Attachments (1)

pasting various alignments from Word defect.doc (20.0 KB) - added by James 13 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by Garry Yao

Milestone: CKEditor 3.6
Status: newconfirmed

We must prioritize inline style over attributes on following source content of the problematic line 5:

<p class="MsoNormal" dir="RTL" style="text-align: left; direction: rtl; unicode-bidi: embed;" align="right"><span dir="LTR" lang="EN-US">RTL – aligned left</span><span dir="LTR" style="" lang="EN-US"></span></p>

comment:2 Changed 13 years ago by Garry Yao

Resolution: invalid
Status: confirmedclosed

In fact the described case works when "config.pasteFromWordRemoveStyles = false" is used, however from such an example we could understand the importance of prompting this configuration by default.

comment:3 Changed 13 years ago by Garry Yao

#6635 is opened for this config promotion.

comment:4 Changed 13 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.6

comment:5 Changed 10 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word
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