Opened 16 years ago
Closed 16 years ago
#3423 closed Bug (fixed)
Unable to outdent when editor.config.indentUnit != 'px'
Reported by: | Josh Nisly | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.0 |
Component: | General | Version: | SVN (CKEditor) - OLD |
Keywords: | HasPatch Review+ | Cc: |
Description
If the editor configuration is set to use an indent unit other than px (e.g. 'pt'), outdenting does not work. This is because the indent detection logic uses getComputedStyle, which returns the indent in pixels.
One solution is to mimic V2 behavior and use getStyle instead of getComputedStyle. Attached is a patch which implements this.
Attachments (1)
Change History (6)
Changed 16 years ago by
Attachment: | 3423.patch added |
---|
comment:1 Changed 16 years ago by
Keywords: | HasPatch added |
---|
comment:2 Changed 16 years ago by
Keywords: | Review+ added |
---|---|
Owner: | set to Martin Kou |
comment:3 Changed 16 years ago by
Milestone: | → CKEditor 3.0 |
---|
comment:4 Changed 16 years ago by
There's still the problem of the editor changing blocks with %/px/ex/... margin left styles to pt - but that's a less critical problem. This patch at least allows non-px units to be used in the indentUnit config, so it's a good improvement.
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with [3480].
Click here for more info about our SVN system.
Actually it makes sense having the inline style being taken, instead of its computed value. I'm calling Martin for the commit, so he can give us his opinion about it.