Unwanted inline styles added to tables
-
The latest version of this plugin (4.7.11 is adding inline styles to tables added via the Visual editor. (as also reported here: https://www.ads-software.com/support/topic/table-formatting-6/)
For example, a two column table adds the following code:
<table style="border-collapse: collapse; width: 100%;" border="1"> <tbody> <tr> <td style="width: 50%;"></td> <td style="width: 50%;"></td>
etc…
This is quite a problem for me since I have created custom styles for different types of table displays for my client, but now the inline styles are overriding most of this custom CSS.
How can I change this behavior? The only solution I have right now is to go in and manually remove the table and td styles, but this is tedious for me and causes trouble for my client who is not proficient working with code.
I just want to be able to insert a clean, no styles table so that I can control the styling via CSS. For instance, I don’t always want my table to be 100% wide or have a border or for my cells to be of equal width, but now I no longer have control over these things with CSS. ??
Hope someone can help!
- The topic ‘Unwanted inline styles added to tables’ is closed to new replies.