Opened 14 years ago
Last modified 12 years ago
#8045 confirmed Bug
Style override only works for attributes
Reported by: | Garry Yao | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Styles | Version: | 3.0 |
Keywords: | Cc: |
Description
- Prepare the editor with the following configuration, to avoid nested font family style:
config.font_style = { element : 'span', styles : { 'font-family' : '#(family)' }, overrides : [ { element : 'span', styles : { 'font-family' : null } } ] };
- Load the the following content and selection:
<span style="font-family:lucida sans unicode,lucida grande,sans-serif;">some [sample] text</span>
- Open font name combo and click on "Aria";
- Actual Result:
<p> <span style="font-family:lucida sans unicode,lucida grande,sans-serif;">some <span style="font-family:arial,helvetica,sans-serif;">sample</span> text</span></p>
- Expected Result:
<p> <span style="font-family:lucida sans unicode,lucida grande,sans-serif;">some </span><span style="font-family:arial,helvetica,sans-serif;">sample</span><span style="font-family:lucida sans unicode,lucida grande,sans-serif;"> text</span></p>
Change History (2)
comment:1 Changed 14 years ago by
Status: | new → confirmed |
---|
This ticket can be considered as part of one large issue mentioned in #5503.