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?
Hi
I also did found these problems and just now I've found the solution to inmediately apply a class to a table, I've wrote it in https://sourceforge.net/tracker/index.p ... tid=543655
With regards to selecting a TR o TD, I don't think that you can select none of them in IE, in firefox you can select TD, but as TR aren't really visible on screen I don't think that you can select them.
The solution would be to create a status bar that shows the current selected element and being able to change the selection from there (like dreamweaver, there are several RFE about this)
RE: How apply a style to a TD?
Many thanks.
RE: How apply a style to a TD?
You can find them if you search the Feature Request section, this is the first one:
https://sourceforge.net/tracker/index.p ... tid=543656
And as you can see there I posted a plugin that creates a status bar.