Athor mode, HTML tables and validating/controlling markup?
Posted: Tue Apr 05, 2011 1:36 am
I'm trying to determine if the table tools in the Author view can be controlled - e.g. with a custom schema along with a xhtml schema. For example, I would like to force the table cells to have predefined classes, so when an editor edits a table, these classes will be automatically added and also validated against a schema.
Something were a table would like this:
And follow these rules:
Something were a table would like this:
Code: Select all
<table>
<tr>
<td class="A">A value</td>
<td class="B">B value</td>
<td class="C">C value</td>
</tr>
</table>
- Minimum of 3 columns and 1 row
- Any number of columns and rows allowed
- Class attribute values in order would be "A, B, C" with additional columns also having class "C"
- When an editor creates a new column or row, it will be created with predefined class names