Opened 7 years ago

Last modified 5 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 7 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 5 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 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy