Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • seanrock 262 posts 483 karma points
    Jul 27, 2010 @ 10:41
    seanrock
    0

    tiny editor removes empty table rows

    This is strange. trying to add a table via the html view however if i add a td with   as its contents - go back to the editor view and then back to the html view the   has been removed, if i click 'update' to return to the editor view the td is removed. Some of our users do not html so this is frustrating for them.

  • dandrayne 1138 posts 2262 karma points
    Jul 27, 2010 @ 10:51
    dandrayne
    0

    Hi Sean

    HAve a look at the tinymcesettings config file inside the /config file and look for "valid elements".  You'll see something like described on this file -> http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements

    Somewhere in there you have

    -td

    Which will remove empty td tags - change this to  +td and you should be ok.

    Dan

  • seanrock 262 posts 483 karma points
    Jul 27, 2010 @ 12:17
    seanrock
    0

    Thanks Dan, however changing -td to +td made no difference other than to leave the tr and remove the inner td's.

  • George Gooding 20 posts 42 karma points
    Sep 15, 2010 @ 14:22
    George Gooding
    1

    You need to make it #td and also need to turn on the following in the tinyMCE config file:

    <config key="cleanup_on_startup">true</config>

    Had the same problem with suicidal table cells, and now they stick around.

Please Sign in or register to post replies

Write your reply to:

Draft