2013-10-20 30 views
0

当我通过TinyMCE为Drupal绘制表格时,表格在我的页面中无法正确显示。我得到的文本没有边框,没有正确的列和行顺序。我该如何解决这个问题?显示所见即所得的TinyMCE表Drupal

例如,我得到的是这样的:而不是

col 1 
col 2 
col 3 

data 
data 
data 

col 1 col 2 col 3 
data data data 

回答

0

看来,HTML是呈现在网页上进行过滤。验证Limit allowed HTML tags是否已选中/启用。如果是这样,则需要将表格HTML标记添加到Allowed HTML tags配置中(在垂直选项卡下)。

转到Configuration>Content Authoring>Text formats>{your used format}>Configure

我通常在我的网站的配置,其涵盖了网站管理员/内容编辑的经典内容的HTML标签使用这些标签:

<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>