Copied to clipboard

Flag this post as spam?

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


  • Michele Verda 6 posts 96 karma points
    Sep 13, 2016 @ 13:09
    Michele Verda
    0

    Hi, when I insert a table in a richtext editor, TinyMCE add always a border=0 properties on the table.

    I want this code:

    <table class="table table-bordered table-hover table-condensed">
    

    But TinyMCE always transform in this:

    <table border="0" class="table table-bordered table-hover table-condensed">
    

    I've tried to delete this properties but the editor continue to add.

    There is a way to configure the editor to simply accept the code without modifying it?

  • Sven Geusens 169 posts 881 karma points c-trib
    Sep 13, 2016 @ 14:21
    Sven Geusens
    101

    Hey Michele

    If you look at the documentation https://our.umbraco.org/documentation/reference/config/tinymceconfig/

    under validElements you will find the standard valid elements for umbraco 6

    in there, there is the defenition of table

    table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor]
    

    I think that if you delete the =0 after border it should let you set a border but not apply the default value.

  • Michele Verda 6 posts 96 karma points
    Sep 13, 2016 @ 15:08
    Michele Verda
    0

    Hi Sven, you've solved my problem!

    Thank you very much.

  • Chuck Kirklen 36 posts 184 karma points
    Nov 21, 2016 @ 21:16
    Chuck Kirklen
    0

    Excellent - i had the same issue and had tried removing the entire "border=0|" but that didn't prevent tinyMce from inserting it anyway.

    Removing the "=0" and leaving plain old "border" in there did the trick! Go figure!

  • Sven Geusens 169 posts 881 karma points c-trib
    Nov 23, 2016 @ 07:09
    Sven Geusens
    0

    Don't forget to mark the solution as the correct answer.

Please Sign in or register to post replies

Write your reply to:

Draft