#2146: Styles for TABLE, TD, TR
---------------------------+------------------------------------------------
 Reporter:  tracktor       |        Type:  New Feature  
   Status:  new            |    Priority:  Normal       
Milestone:  FCKeditor 2.7  |   Component:  Core : Styles
  Version:                 |    Keywords:               
---------------------------+------------------------------------------------
 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.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2146>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to