function table_sendValue()
{
	if(mainContainer!=null)
	{
		//we construct the new table
		var table=window.opener.document.createElement("TABLE");
		var newRow=null;
		var newCol=null;
		
		var rows=getValue("table_rows");
		var cols=getValue("table_cols");
		
		for(x=0;x<rows;x++)
		{
			newRow=table.insertRow();
			for(y=0;y<cols;y++)
			{
				newRow.insertCell();
			}
		}
		
		//we add the new table after the mainContainer
		if(mainContainer.nextSibling!=null)window.opener.editor().insertBefore(table,mainContainer.nextSibling);
		else window.opener.editor().appendChild(table);
		
		//update txthtml value
		window.opener.getCleanHTML();
	}
}
//send the table to the editor
send the table to the editor
send the table to the editor
function table_sendValue()
{
	if(mainContainer!=null)
	{
		var table=window.opener.document.createElement("TABLE");
		var newRow=null;
		var newCol=null;
		var rows=getValue("table_rows");
		var cols=getValue("table_cols");
		for(x=0;x<rows;x++)
		{
			newRow=table.insertRow();
			for(y=0;y<cols;y++)
			{
				newRow.insertCell();
			}
		}
		if(mainContainer.nextSibling!=null)window.opener.editor().insertBefore(table,mainContainer.nextSibling);
		else window.opener.editor().appendChild(table);
		window.opener.getCleanHTML();
	}
}
function table_sendValue ( ) { if ( mainContainer != null ) { var table = window . opener . document . createElement ( "TABLE" ) ; var newRow = null ; var newCol = null ; var rows = getValue ( "table_rows" ) ; var cols = getValue ( "table_cols" ) ; for ( x = 0 ; x < rows ; x ++ ) { newRow = table . insertRow ( ) ; for ( y = 0 ; y < cols ; y ++ ) { newRow . insertCell ( ) ; } } if ( mainContainer . nextSibling != null ) window . opener . editor ( ) . insertBefore ( table , mainContainer . nextSibling ) ; else window . opener . editor ( ) . appendChild ( table ) ; window . opener . getCleanHTML ( ) ; } }
send the table to the editor
send the table to the editor
//we construct the new table //we add the new table after the mainContainer //update txthtml value