Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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.
Hi Sven, you've solved my problem!
Thank you very much.
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!
Don't forget to mark the solution as the correct answer.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
TiynMCE table borders
Hi, when I insert a table in a richtext editor, TinyMCE add always a border=0 properties on the table.
I want this code:
But TinyMCE always transform in this:
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?
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
I think that if you delete the =0 after border it should let you set a border but not apply the default value.
Hi Sven, you've solved my problem!
Thank you very much.
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!
Don't forget to mark the solution as the correct answer.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.