0
votes

When I draw a table by TinyMCE for Drupal, the table doesn't display properly in my page. I get just the text with no border and without the right order of columns and rows. How can I solve that?

For example, I get something like this:

col 1 
col 2 
col 3

data
data
data

instead of:

col 1   col 2   col 3
data    data    data
1

1 Answers

0
votes

It seems that the HTML is filtered before rendering it on the page. Verify if the Limit allowed HTML tags is checked / enabled. If so, you need to add the table HTML tags into Allowed HTML tags configuration (under the vertical tabs).

Go to Configuration > Content Authoring > Text formats > {your used format} > Configure

I usually use these tags in my websites configuration which covers the classic content HTML tags for webmasters / content editors:

<p> <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <h5> <h6> <span> <img> <br> <table> <thead> <tbody> <tfoot> <tr> <th> <td>