Opened 11 years ago
Last modified 9 years ago
#11065 confirmed Bug
Incorrect paragraph style after applying indentation and changing text direction
Reported by: | Irina | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.2.2 |
Keywords: | IBM | Cc: | Teresa Monahan, Satya Minnekanti, peter |
Description
- Load the attached sample page
- Click into the 1st inline editor
- Ctrl+A to select all text
- Click the button to change the text direction from left to right
- Click increase indent button
- Click the button to change the text direction from right to left
- Check the paragraph style
Expected result: margin-left: 40px;
Actual result: margin-right: 40px;
This only happens when we have two editors on the page.
Attachments (1)
Change History (4)
Changed 11 years ago by
Attachment: | sample.html added |
---|
comment:1 Changed 10 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 9 years ago by
- The editor#dirChanged events is fired on both editors when changing the text direction in the first one. Most likely this is a cause of this issue.
- This may turn out to be a tricky issue due to the bidi’s weird implementation. However, first thing to fix will be the event. It may also fix the errors which are thrown. If not, then it’d be good to check how is the range created to fix those errors.
comment:3 Changed 9 years ago by
Summary: | Incorrect paragraph style after applying indentation and changing RTL/LTR direction → Incorrect paragraph style after applying indentation and changing text direction |
---|
Confirmed on Chrome. Didn't check other browsers, but I guess it's a cross-browser problem. And it really requires two editors what makes it very interesting :).
Reproducible from at least from 4.0, and only on inline editor.