const tableConfig = {
tableProperties: {
defaultProperties: {
borderStyle: 'dashed',
borderColor: 'hsl(0, 0%, 60%)',
borderWidth: '3px',
backgroundColor: '#00f',
alignment: 'left',
width: '300px',
height: '250px'
}
},
tableCellProperties: {
defaultProperties: {
borderStyle: 'dotted',
borderColor: 'hsl(120, 75%, 60%)',
borderWidth: '2px',
horizontalAlignment: 'right',
verticalAlignment: 'bottom',
padding: '10px'
}
}
}
horizontalAlignment attribute.
verticalAlignment attribute.
*Alignment attribute.
horizontalAlignment-verticalAlignment).
border-color property should contain the
Restore default button for both – table and table cell views.
background-color property should contain the
Restore default button for table view.
editor.getData() on the initial data should return the data
without any attribute (even if the editor's UI shows them).
editor.setData(
'<table style="border:1px solid red">' +
'<tr>' +
'<td>parent:00</td>' +
'<td style="border:2px solid red;">' +
'<table style="border:1px solid green"><tr><td>child:00</td></tr></table>' +
'</td>' +
'</tr>' +
'</table>'
);
The page defines the following styles in the
<style>
element.
| Left-top. | Center-top. | Right-top. |
| Left-middle. | Center-middle. | Right-middle. |
| Left-bottom. | Center-bottom. | Right-bottom. |