Hi,
I upgraded my CuteEditor (6.0 -> 6.7) (for fixed a updatepanel bug)
And i have a problem with for apply style (CssClass) in td element.
I hae not this problem with version 6.0.
When i have a focus on td, with 6.7, and if i select in ToolsControls CssClass, my cssclass cellule1, i get a span style and not td style :(.
Why ?
I have got
<td><span class="cellule1">my example</span></td>
and i want :
<td class="cellule1">my example</td>
My code :
CuteEditor.ToolControl toolctrl = editeur.ToolControls["CssClass"];
//
if (toolctrl != null)
{
CuteEditor.RichDropDownList dropdown = (CuteEditor.RichDropDownList)toolctrl.Control; //the first item is the caption
dropdown.Width = new Unit(100);
CuteEditor.RichListItem richitem = dropdown.Items[0];
//clear the items from configuration files
dropdown.Items.Clear();
//add the caption
dropdown.Items.Add(richitem);
//add html and text and value
dropdown.Items.Add("<span class=''>normal</span>", "normal", "normal");
dropdown.Items.Add("<span class='surlignage1'>surlignage 1</span>", "surlignage1", "surlignage1");
dropdown.Items.Add("<span class='surlignage2'>surlignage 2</span>", "surlignage2", "surlignage2");
dropdown.Items.Add("<span class='mise_evidence1'>mise_evidence 1</span>", "mise_evidence1", "mise_evidence1");
dropdown.Items.Add("<span class='mise_evidence2'>mise_evidence 2</span>", "mise_evidence2", "mise_evidence2");
dropdown.Items.Add("<span class='cellule1'>cellule 1</span>", "cellule1", "cellule1");
}
My Css for the td
td.cellule1
{
background-color: #017efe;
color: #ffffff;
border: 0;
}
Best wishes,
Arnaud