Ticket #1638 (closed Bug: duplicate)

Opened 12 months ago

Last modified 10 months ago

fckstyles.xml: Non-classed div gets all div-styles

Reported by: brjann Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version:
Keywords: Cc:

Description

I'm using fckstyles.xml to enable the user to select custom div-classes. Problem is that a div without a class attributes i marked as having all div-styles in the custom styles combo.

Reproduce:

fckstyles.xml <?xml version="1.0" encoding="utf-8" ?> <Styles>

<Style name="Example1" element="div">

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

</Style> <Style name="Example2" element="div">

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

</Style>

</Styles>

HTML: <div>No class</div> <div class="example1">Example1</div> <div class="example2">Example2</div>

"No class" will have both styles selected in the combo, while the other two will have the respective div selected.

Since it is not possible to unselect either style for "No class", nor give it any of the two styles, this makes it impossible to format <div>-tags using the combo.

Change History

Changed 12 months ago by brjann

Btw, this bug is not present in 2.4.3

Changed 10 months ago by alfonsoml

  • priority changed from High to Normal
  • status changed from new to closed
  • resolution set to duplicate

dup of #1503

You'll be able to specify class="" and it will work the way you want.

Note: See TracTickets for help on using tickets.