Ticket #4980 (closed Bug: fixed)
img border=0 not working
| Reported by: | johngoodell | Owned by: | m.nguyen |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.2 |
| Component: | General | Version: | 3.1 |
| Keywords: | Confirmed Review+ | Cc: |
Description
Try setting Image Properties -> Border=0, click OK - went back to properties, nothing in border text box.
Then tried linking an image - automatically defaults to a border - went to Image Properties, entered 0 in Border, clicked OK - nothing changes. This WORKS in 3.0, but since installing latest version (last night) it doesn't.
Is OK for any other value entered in this field (tried image border=1 and it saves correctly).
Attachments
Change History
comment:2 Changed 3 years ago by fredck
- Keywords Confirmed added
- Milestone set to CKEditor 3.2
Confirmed. Setting border to zero is currently removing the border styles from the image. It should instead set the border style to "none".
Border styles must be removed only when leaving the border field empty.
Changed 3 years ago by m.nguyen
- Attachment 4980.patch added
This bug also happen with hspace and vspace, too. The reason of problem is we have an error in case logic check variable with zero value.

Broken in both FF3 and IE8