﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2146	Styles for TABLE, TD, TR	tracktor		"Sorry for my bad english.

What is needed to do:

Now the ""Style Combo Box"" shows only available styles for element in current cursor position (""current element""). One needs to gather also available styles for ""Parent element"" (parent of ""current element""). And also for Parent of ""Parent Element"" and so on till root element.

For example in this situation...

{{{
<table>
<tr>
  <td><p>some text _CURSOR_HERE_ some text</p></td>
</tr>
</table>
}}}

...the Style Combobox must gather available styles for this elements: p, td, tr, table.

And now...

When user selects the style from ""Style Combobox"", we need to:

 1. determine correct element to apply the style: current element or some ancestor of current element.
 2. apply selected style to this element.

For example if selected style is designed for TR element (see an example below), then we apply the selected style to TR (not to current element but to some ancestor of current element).

Example fckstyle.xml

{{{
<Style name=""Odd row"" element=""tr"">
	<Attribute name=""class"" value=""odd"" />
</Style>
}}}



Some details:

In this situation...

{{{
<table id=""table1"">
<tr id=""tr1"">
	<td id=""td1"">
	<p id=""p1"">
		<table id=""table2"">
		<tr id=""tr2"">
			<td id=""td2""><p id=""p2"">some text _CURSOR_HERE_ some text</p></td>
		</tr>
		</table>
	</p>
	</td>
</tr>
</table>
}}}

...the Style Combobox must gather available styles only for this elements: p2, td2, tr2, table2. Not for: p1, td1, tr1, table1. For first ancestors only. For first TD, for first TR, for first TABLE and so on.

Resume:

In that way we get the feature: styles for tr, th, td elements (and some more).

Sorry for my bad english.
"	New Feature	closed	Normal		Core : Styles		duplicate	Confirmed	
