How to create a customized table insert routine ?

pinEdit

How to create a customized table insert routine ?


Pintexx Support 09-14-2005, 10:12
To customize the table insert routine please replace the event handler for inserting a table with the following function:
 
function onCreateTable(row, col)
{
   //  editCreateTable(row,col);
        var sTableHtml = "<TABLE WIDTH=75% bordercolor=black border=1 cellspacing=0 cellpadding=3>\n<TBODY>\n";
        for (var r=0; r<row; r++) {
                sTableHtml += "<TR>\n";
                for (var c=0; c<col; c++) {
                        sTableHtml += "<TD></TD>\n";
                }
                sTableHtml += "</TR>\n";
        }
        sTableHtml += "</TBODY>\n</TABLE>\n";
        editInsertHtml(sTableHtml);
}
 
(Thank's, Patrick)