Opened 16 years ago

Closed 16 years ago

#2146 closed New Feature (duplicate)

Styles for TABLE, TD, TR

Reported by: tracktor Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version:
Keywords: Confirmed Cc:


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...

  <td><p>some text _CURSOR_HERE_ some text</p></td>

...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" />

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>

...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.


In that way we get the feature: styles for tr, th, td elements (and some more).

Sorry for my bad english.

Change History (4)

comment:1 Changed 16 years ago by tracktor

In that way we can select td and tr elements (search ancestors of current element and we get selected td and tr).

In that way it is possible to realize some multi-cell selections for IE.

comment:2 Changed 16 years ago by tracktor

In that way we can "select" td and tr elements witout "tag selector".

comment:3 Changed 16 years ago by Wojciech Olchawa

Keywords: Confirmed added
Milestone: FCKeditor 2.7

comment:4 Changed 16 years ago by Alfonso Martínez de Lizarrondo

Resolution: duplicate
Status: newclosed

dup of #536

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy