TinyMCE:Configuration/fix table elements
From Moxiecode Documentation Wiki
Contents |
[edit]
Option: fix_table_elements
This option enables you to specify that table elements should be moved outside paragraphs or other block elements. If you enable this option block elements will be split into two chunks when a table is found within it, see the example below for details. This option is disabled by default.
[edit]
This invalid table:
<p> a <table> <tr><td>b</td></tr> <tr><td>c</td></tr> </table> d </p>
[edit]
Gets converted into this valid XHTML:
<p> a </p> <table> <tr><td>b</td></tr> <tr><td>c</td></tr> </table> <p> d </p>
[edit]
Example of usage of the fix_table_elements option:
tinyMCE.init({
...
fix_table_elements : true
});
