Hi
How do I select a TD cell and apply a style? I added the following to fckstyles.xml...
<Style name="Green Cell" element="td">
<Attribute name="class" value="cellGreen" />
</Style>
If the style is already applied to the TD then it appears in the combo correctly. However, in IE6, 'Green Cell' never appears in the styles list, even when the cell contains no tags. In Mozilla 1.7.2 'Green Cell' appears in the list but selecting it has no effect.
This is FCKeditor 1.2.1.
Cheers
Julian
How do I select a TD cell and apply a style? I added the following to fckstyles.xml...
<Style name="Green Cell" element="td">
<Attribute name="class" value="cellGreen" />
</Style>
If the style is already applied to the TD then it appears in the combo correctly. However, in IE6, 'Green Cell' never appears in the styles list, even when the cell contains no tags. In Mozilla 1.7.2 'Green Cell' appears in the list but selecting it has no effect.
This is FCKeditor 1.2.1.
Cheers
Julian

RE: How apply a style to a TD?
I think the most easy way to achieve this is to add an xtd ( read more on w3.org) to the fckstyles.xml. Hope this will help you. Kind regards.
RE: How apply a style to a TD?
I searched on w3.org and XTD, and found a little bit of stuff about setting up extensible information, but that's currently all greek to me.
I'm looking at the wiki docs, and it says I can set up styles on objects, and Table elements and TR elements are supposed to be valid "objects". Then it says when I select the object, I should be able to see the style in the list. How does one select a TR?
Also, when I selected a table, the table specific styles showed up in the list, but I could not seem to CHANGE them.
Kristi Bittner
RE: How apply a style to a TD?
Because of both those items, no immediate change in visual display, and style drop down not showing current table style, I was fooled into thinking the style application did not work for tables.
I still have my original problem - I cannot SELECT a TR or TD to apply the styles TO.
Kristi
RE: How apply a style to a TD?
https://sourceforge.net/tracker/index.p ... tid=543655
RE: How apply a style to a TD?
Many thanks.
RE: How apply a style to a TD?
https://sourceforge.net/tracker/index.p ... tid=543656