Opened 14 years ago

Closed 14 years ago

#5428 closed Bug (duplicate)

Object styles not working for links (a tag) in browsers other than Firefox

Reported by: Niek Kouwenberg Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.2
Keywords: Cc:


I've created a custom stylesCombo_stylesSet file, in which I've included some classes for links:

CKEDITOR.addStylesSet( 'my_stylesheet', [

{ name: 'Info', element: 'span', attributes: {'class': 'info'} }, { name: 'Error', element: 'span', attributes: {'class': 'error'} },

{ name: 'More', element: 'a', attributes: {'class': 'more'} }, { name: 'Feed', element: 'a', attributes: {'class': 'feed'} }


The SPAN elements always appear, as described in the documentation. Also according to the documentation, the A element is a 'special selectable element', for which the styles only appear when this element is selected.

When I select a link in Firefox (2/3/3.6), en open the styles dialog, the "More" and "Feed" classes are present. However, doing the same in any other browser has no effect. Neither IE 6/7/8, Chrome, Opera or Safari. Note: that the other special types, like P and IMG do work in those browsers, only A elements appear to be be affected.

I've tested this with CKEditor 3.1, 3.1.1 and 3.2, and all versions have this problem.

Change History (1)

comment:1 Changed 14 years ago by Alfonso Martínez de Lizarrondo

Resolution: duplicate
Status: newclosed
Version: SVN (CKEditor)3.2

Despite the version marked as SVN CKEditor it's clear that you didn't test that one as it's already fixed there.

Dup of #536

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