Opened 14 years ago
Closed 14 years ago
#6865 closed Bug (fixed)
BiDi buttons are not reflected when a change is done through a dialog
Reported by: | Sa'ar Zac Elias | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.3 |
Component: | Core : BiDi | Version: | 3.4 |
Keywords: | Cc: |
Description
- Open a sample and create a div.
- Note that the toolbar icon shows LTR.
- Right click on the div, and choose edit div.
- Go to the advanced tab and choose the RTL from the Language Direction dropdown.
- Click OK.
Note that the toolbar icon shows LTR.
Attachments (5)
Change History (20)
Changed 14 years ago by
Attachment: | 6865.patch added |
---|
comment:1 Changed 14 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | new → review |
comment:2 Changed 14 years ago by
Milestone: | → CKEditor 3.5.2 |
---|
comment:3 Changed 14 years ago by
Status: | review → review_failed |
---|
- There're missing fields now (language code & title) and we already have the css class field in the general tab.
- It's impossible to edit class names of the div through the general tab (maybe becuase the same field appears on both tabs).
- Note that the way we handle styles from the styles set is not treated.
Changed 14 years ago by
Attachment: | 6865_2.patch added |
---|
comment:4 Changed 14 years ago by
Status: | review_failed → review |
---|
This's just a temporary fix, we need to seek for a way of firing this event at element::setAttribute(s) level or even by "DOMAttrModified" event.
comment:5 Changed 14 years ago by
Status: | review → review_failed |
---|
The div dialog was just an example, also affects other dialogs (e.g. link). Let's find a way to trigger the event on attribute modification in general.
comment:6 Changed 14 years ago by
Milestone: | CKEditor 3.5.3 |
---|
My bad, the link dialog is not a good example as the buttons only care about block level elements (maybe a point of thought?). All in all, this is an R- as the patch doesn't work for me, anyway we should still seek for a more dynamic way.
comment:7 Changed 14 years ago by
Milestone: | → CKEditor 3.5.2 |
---|
comment:8 Changed 14 years ago by
Milestone: | CKEditor 3.5.2 → CKEditor 3.5.3 |
---|
Changed 14 years ago by
Attachment: | 6865_3.patch added |
---|
comment:9 Changed 14 years ago by
Status: | review_failed → review |
---|---|
Version: | → 3.4 |
Ok now a generic solution proposed.
comment:10 Changed 14 years ago by
Status: | review → review_failed |
---|
Note that el.setAttribute( 'style', 'sthg' )
is not the same as el.setStyle( 'sthg', 'sthg' )
, so we can't map setAttribute to setStyle in that sense.
Changed 14 years ago by
Attachment: | 6865_4.patch added |
---|
comment:11 Changed 14 years ago by
Status: | review_failed → review |
---|
I'd not go with style parsing approach to NOT bring a performance impacts.
comment:12 Changed 14 years ago by
Status: | review → review_failed |
---|
- Trying to insert a table results in a js error.
- We should also consider removeAttribute and removeStyle.
Changed 14 years ago by
Attachment: | 6865_5.patch added |
---|
comment:13 Changed 14 years ago by
Status: | review_failed → review |
---|
comment:14 Changed 14 years ago by
Status: | review → review_passed |
---|
comment:15 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6478].