You must append this script to the file fck_table.html in order to allow mod existing tables loaded into editor.
Hope this help
......// end of if ( ! bExists )
if (bExists) //mike's code
{
var iRows = document.getElementById('txtRows').value ;
var iCols = document.getElementById('txtColumns').value ;
originalRow = table.rows.length ;
originalCol = table.rows[0].cells.length ;
if(iRows != originalRow)
{
if(iRows < originalRow)
{
k = originalRow - iRows;
for(m = 1; m <= k; m++)
{
table.deleteRow(originalRow - m);
}
}
else
{
for ( var r = originalRow ; r < iRows ; r++ )
{
var oRow = table.insertRow(-1) ;
for ( var c = 0 ; c < iCols ; c++ )
{
var oCell = oRow.insertCell(-1) ;
oCell.innerHTML = " " ;
}
}
}
}// end if rows
if(iCols != originalCol)
{
if(iCols < originalCol)
{
k = originalCol - iCols;
for(r = 0; r < originalRow; r++)
{
for(m = 1; m <= k; m++)
{
table.rows[r].deleteCell(originalCol - m);
}
}
}
else
{
for ( var r = 0 ; r < originalRow ; r++ )
{
var oRow = table.rows[r];
for ( var c = originalCol ; c < iCols ; c++ )
{
var oCell = oRow.insertCell(-1) ;
oCell.innerHTML = " " ;
}
}
}
}// end if cols
oEditor.FCK.InsertElement( table ) ;
}// end mike's code
.....
Hope this help

RE: A way to allow editing existing tables
What does this do ?
RE: A way to allow editing existing tables
This script solve the problem.
I dunno if this is my fault or a bug, but when i try to edit a table the fields "Cell" and "Row" are disabled.
Bye
RE: A way to allow editing existing tables
RE: A way to allow editing existing tables