Ticket #1887 (closed Bug: duplicate)

Opened 5 months ago

Last modified 5 months ago

Paragraph styles not selectable

Reported by: andrewpr5 Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.5
Keywords: Discussion Cc:

Description

If you have one or more styles set in fckstyles.xml which use the p element, in the editor every <p> shows as having the styles selected, even if they are not. You are therefore unable to set the p style on a paragraph.

Example styles in fckstyles.xml:

<Style name="Intro Text" element="p">

<Attribute name="class" value="IntroText" />

</Style>

<Style name="Sub-Head" element="p">

<Attribute name="class" value="SubHead" />

</Style>

Attachments

fck_styles.jpg (23.8 kB) - added by andrewpr5 5 months ago.
Screenshot of style dropdown showing styles selected

Change History

Changed 5 months ago by andrewpr5

Screenshot of style dropdown showing styles selected

Changed 5 months ago by w.olchawa

  • keywords Discussion added

Hi!

When the FCKConfig.EnterMode function is set to 'p' and you will apply your customs styles which use the <p> element, you will find that your styles are both selected. In some way it makes sense because a new entered text is inside the <p> tags, so both of the styles apply to it.

If you set the FCKConfig.EnterMode function to 'div' or 'br' the problem won't occur at all and you will be able to select your custom styles.

It's hard to say what should be the expected behavior. If you begin writing in a paragraph by default which style should be chosen. The first one frm the list or the second.

I will mark this ticket as Discussion.

Thanks for investigating.

Changed 5 months ago by w.olchawa

  • status changed from new to closed
  • resolution set to duplicate

DUP of #1503

Note: See TracTickets for help on using tickets.