#7907 closed Bug (fixed)
BIDI: Pressing decrease indent on a RTL list item causes a change in language direction
Reported by: | James Cunningham | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.6.3 |
Component: | Core : Lists | Version: | 3.4 |
Keywords: | IBM | Cc: | Damian, Teresa Monahan, Satya Minnekanti |
Description
Steps to reproduce the defect:
- Open the Ajax sample.
- Click on the RTL button in the toolbar.
- Create a bulleted/numbered list.
- Apply a paragraph format (e.g. Heading 1) to one of the list items.
- Place the cursor in the list item that the paragraph format was applied to & click on the decrease indent button in the toolbar.
Expected: The number/bullet is removed from the list item and it remains RTL.
Actual: The number/bullet is removed from the list item but the langauge direction changes to LTR.
Attachments (4)
Change History (22)
comment:1 Changed 14 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.6.1 (SVN - trunk) → 3.4 |
comment:2 Changed 14 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | confirmed → assigned |
Changed 13 years ago by
Attachment: | 7907.patch added |
---|
comment:4 Changed 13 years ago by
Status: | review → review_failed |
---|
The following tests are failing with this patch:
http://ckeditor.t/tt/6461/1.html
http://ckeditor.t/tt/7645/3.html
comment:6 Changed 13 years ago by
Status: | review_failed → review |
---|
I would like to propose a re-fix to #6461, otherwise it would be hard to live with the fix here, in the sense that, when the paragraph to convert is already styled, then the block should be preserved in list item, this makes makes no visual difference from previous, while it eliminate any further troubles to inherit styles from the list item later, thus when a list item is removed, its owning styles just gone, but not the content styles.
Changed 13 years ago by
Attachment: | 7907_2.patch added |
---|
comment:7 Changed 13 years ago by
Status: | review → review_failed |
---|
This one is now falling:
http://ckeditor.t/tt/4450/1.html
Would you mind doing a full test run before sending the next patch?
comment:8 follow-up: 9 Changed 13 years ago by
Status: | review_failed → review |
---|
Ok, a full run shows that #4450 tc is the only that need to be updated to reflect the new behavior.
comment:9 Changed 13 years ago by
Status: | review → review_failed |
---|
comment:10 Changed 13 years ago by
Milestone: | → CKEditor 3.6.3 |
---|
comment:11 Changed 13 years ago by
Status: | review_failed → review |
---|
comment:12 Changed 13 years ago by
Status: | review → review_failed |
---|
Unfortunately enforcing <p> blocks on alignment operations is something to avoid. It brings important behavioral changes to the editor in both layout (e.g. margins for <p>) and semantics aspects.
Because of the above, the changes proposed for the #4450 tt are to be reverted.
Changed 13 years ago by
Attachment: | 7907_3.patch added |
---|
comment:13 Changed 13 years ago by
Status: | review_failed → review |
---|
New patch now copy/merge list item styles to content blocks when removed.
New ticket tcs are added to cover these cases.
comment:14 Changed 13 years ago by
Status: | review → review_failed |
---|
The following new test is not passing:
http://ckeditor.t/tt/7657/1.html
Changed 13 years ago by
Attachment: | 7907_4.patch added |
---|
comment:15 Changed 13 years ago by
Status: | review_failed → review |
---|
comment:16 Changed 13 years ago by
Status: | review → review_passed |
---|
comment:17 Changed 13 years ago by
Component: | Core : BiDi → Core : Lists |
---|---|
Resolution: | → fixed |
Status: | review_passed → closed |
Fixed with [7419].
Confirmed from CKEditor 3.4