Opened 10 years ago

Last modified 5 years ago

#3731 confirmed New Feature

Support 'style only' override in style system

Reported by: Garry Yao Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.0
Keywords: Discussion HasPatch Cc:

Description

This's a ticket derived from #705, which provide a UC of the following style definition which we don't support now:

{ element : 'strong', overrides : [ { element: 'b'}, { element: 'font', styles : { 'font-weight' : 'bold' } } ] }

And a more generic UC ( and actually a common case )with 'style' only definition could be inferred as:

{ element : 'strong', overrides : [ { element: 'b'}, { element: '*', styles : { 'font-weight' : 'bold' } } ] }

Which declare that we need to consider bold for the following two cases:

  1. It's a <strong> tag;
  2. It's a <b> tag;
  3. It's any tag with "font-weight" : "bold" style;

Attachments (1)

3731.patch (3.3 KB) - added by Garry Yao 10 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by Garry Yao

Keywords: HasPatch added

Changed 10 years ago by Garry Yao

Attachment: 3731.patch added

comment:2 Changed 9 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

comment:3 Changed 9 years ago by Wiktor Walc

Version: 3.0

comment:4 Changed 5 years ago by Jakub Ś

Status: newconfirmed

This ticket is very similar to #5980 however I think that #5980 sounds better.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy