Opened 14 years ago
Closed 14 years ago
#7322 closed Bug (fixed)
Valid font specification not being handled by the editor properly
Reported by: | Lynne Kues | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.4 |
Component: | Core : Styles | Version: | 3.5.2 |
Keywords: | IBM | Cc: | idzelis@… |
Description
Open the editor with the attached html. Click on the various fonts. Notice that the font picker does not recognize the font.
The w3 specification for font-family states that font "family names" must be quoted strings. It specifically "recommends" that fonts with spaces in their name should be quoted, and explicitly shows an example of a font without quotes as invalid.
i.e. (this is specifically mentioned as invalid) font-family: Hawaii 5-0, sans-serif;
See http://www.w3.org/TR/CSS2/fonts.html#font-family-prop
The editor should correctly recognize this type of font specification. In addition, the editor should be generating the font specification according to w3 specification.
Attachments (2)
Change History (5)
Changed 14 years ago by
Attachment: | font-html.txt added |
---|
Changed 14 years ago by
Attachment: | 7322.patch added |
---|
comment:1 Changed 14 years ago by
Component: | General → Core : Styles |
---|---|
Owner: | set to Garry Yao |
Status: | new → review |
comment:2 Changed 14 years ago by
Milestone: | → CKEditor 3.5.4 |
---|---|
Status: | review → review_passed |
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6817].
Propose for font-family normalization in our styles system:
TCs added with [6549].