Opened 13 years ago

Last modified 11 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

  1. 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 } } ]
    	};
    
    
  2. Load the the following content and selection:
    <span style="font-family:lucida sans unicode,lucida grande,sans-serif;">some [sample] text</span>
    
  3. 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 13 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 11 years ago by Jakub Ś

This ticket can be considered as part of one large issue mentioned in #5503.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy