Ticket #1638 (closed Bug: duplicate)
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.