Opened 15 years ago

Last modified 9 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 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 years ago by Garry Yao

Keywords: HasPatch added

Changed 15 years ago by Garry Yao

Attachment: 3731.patch added

comment:2 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

comment:3 Changed 14 years ago by Wiktor Walc

Version: 3.0

comment:4 Changed 9 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 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy