Ticket #6484 (closed Bug: invalid)

Opened 4 years ago

Last modified 8 months ago

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

Reported by: james c Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 3.4.1
Keywords: IBM Cc: damo, joek, satya

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

pasting various alignments from Word defect.doc (20.0 KB) - added by james c 4 years ago.

Change History

Changed 4 years ago by james c

comment:1 Changed 4 years ago by garry.yao

  • Status changed from new to confirmed
  • Milestone set to CKEditor 3.6

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 4 years ago by garry.yao

  • Status changed from confirmed to closed
  • Resolution set to invalid

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 4 years ago by garry.yao

#6635 is opened for this config promotion.

comment:4 Changed 4 years ago by fredck

  • Milestone CKEditor 3.6 deleted

comment:5 Changed 8 months ago by fredck

  • Component changed from Core : Pasting to Plugin : Paste from Word
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy