Problem when trying to give style to table rows

Last post 01-21-2011, 10:56 AM by Eric. 3 replies.
Sort Posts: Previous Next
  •  01-19-2011, 6:40 AM 65789

    Problem when trying to give style to table rows

    We have different backgrounds for odd and even rows in tables. In a previous version of CE we teached users to select the text in the row and apply the style by clicking in the dropdown of styles.  CE applyed the style to the TD element. This worked fine until we updated to the last version. Now when applying the style, CE inserts an span element inside the TD and the class is applyed to the span and not the td. Is this change intented? Is there a way to not insert spans? Or is there another way of easily aply styles to rows?
     
    Thanks in advance and sorry for my english
  •  01-19-2011, 9:01 AM 65794 in reply to 65789

    Re: Problem when trying to give style to table rows

    Dear andreu,
     
    Please check Editor.UseFontTags Property.

    Editor.UseFontTags Property

    Font tags are now deprecated, meaning that they aren't used any more and will cause validation errors. Many legacy pages still contain style information in font tags. By default Cute Editor converts font tags to span tags. <font face="times" size="4" color="#ffffff">your text</font> would be replaced with <span style="font-family: times, serif; font-size: 110%; color:#ffffff">your text</span> If you still want to use font tags, you can set this property to true.
     
    keep me posted.
     
    Thank you for asking
  •  01-20-2011, 2:34 AM 65805 in reply to 65794

    Re: Problem when trying to give style to table rows

    That's not the problem, the thing is the editor used to do this when applying a class:
     
    <tr>
            <td class="some_class">some text</td>
            <td class="some_class">some text</td>
            <td class="some_class">some text</td>
            <td class="some_class">some text</td>
        </tr>  
     
    and now does this:
     
    <tr>
            <td><span class="some_class">some text</span></td>
            <td><span class="some_class">some text</span></td>
            <td><span class="some_class">some text</span></td>
            <td><span class="some_class">some text</span></td>
        </tr>
     
    My class is defined to have a background color, so being in the  span now the backgroung has only the width of the text and not the width of the cell as intended.
  •  01-21-2011, 10:56 AM 65825 in reply to 65805

    Re: Problem when trying to give style to table rows

    Dear andreu,
     
    Please follow steps:
    2. Remove all content
    3. Create one table of 2 rows and 2 columns
    4. Input cell11,cell12,cell21,cell22 in these 4 cells
    5. Click the first cell, right click it, click "Tags"=>"TD"=>"Properties", and then set the "Css Class"
     
    After done, please check the html code generated, it is what you need.
     
    Thank you for asking
View as RSS news feed in XML