Ticket #1897 (new Bug)

Opened 9 months ago

Last modified 9 months ago

Unable to creates styles for a tags

Reported by: hagios17 Owned by:
Priority: Normal Milestone: CKEditor 3.0
Component: Core : Styles Version: SVN
Keywords: Confirmed Cc: hagios17

Description

I have the following styles:

        <Style name="Link (member)" element="a">
                <Attribute name="class" value="member" />
        </Style>
        <Style name="Link (PDF)" element="a">
                <Attribute name="class" value="pdf" />
        </Style>
        <Style name="Link (read more)" element="a">
                <Attribute name="class" value="readmore" />
        </Style>

which show up fine in the drop down (and are even styled) but selecting a link and then a style does nothing. I need to be able to put class on a tags.

Change History

Changed 9 months ago by fredck

  • keywords Confirmed added
  • milestone changed from FCKeditor 2.6 to FCKeditor 3.0

Today, styles can be applied to "selectable" elements. The <a> element is not selectable (like an image) so there are no ways to apply styles specially defined to it. We should be able to provide it for V3.

Note: See TracTickets for help on using tickets.