Ticket #6484 (closed Bug: invalid)
BIDI: Incorrect alignment is applied when copying & pasting RTL content from Word
| Reported by: | james c | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Core : Pasting | Version: | 3.4.1 |
| Keywords: | IBM | Cc: | damo, joek, satya |
Description
Steps to Reproduce the defect:
- Open the Ajax sample.
- 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
Change History
comment:1 Changed 3 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 3 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.
