rem: var cols = 2, rows = 2, border = 0, cellpadding = "", cellspacing = ""; 
add: var cols = 2, rows = 2, border = tinyMCE.getParam('table_default_border', '0'), cellpadding = tinyMCE.getParam('table_default_cellpadding', ''), cellspacing = tinyMCE.getParam('table_default_cellspacing', ''); 
context: function init() {	tinyMCEPopup.resizeToInnerSize();	document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');	document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');	document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');	document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');	var cols = 2, rows = 2, border = 0, cellpadding = "", cellspacing = "";	var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = "";	var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "";	var inst = tinyMCE.selectedInstance;	var formObj = document.forms[0];	var elm = tinyMCE.getParentElement(inst.getFocusElement(), "table");	tinyMCE.tableElm = elm;	action = tinyMCE.getWindowArg('action');	if (action == null)		action = tinyMCE.tableElm ? "update" : "insert";	if (tinyMCE.tableElm && action != "insert") {		var rowsAr = tinyMCE.tableElm.rows;		var cols = 0;		for (var i=0; i<rowsAr.length; i++)			if (rowsAr[i].cells.length > cols)				cols = rowsAr[i].cells.length;		cols = cols;		rows = rowsAr.length;		st = tinyMCE.parseStyle(tinyMCE.getAttrib(tinyMCE.tableElm, "style"));		border = trimSize(getStyle(elm, 'border', 'borderWidth'));		cellpadding = tinyMCE.getAttrib(tinyMCE.tableElm, 'cellpadding', "");		cellspacing = tinyMCE.getAttrib(tinyMCE.tableElm, 'cellspacing', "");		width = trimSize(getStyle(elm, 'width', 'width'));		height = trimSize(getStyle(elm, 'height', 'height'));		bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor'));		bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor'));		align = tinyMCE.getAttrib(tinyMCE.tableElm, 'align', align);		className = tinyMCE.getVisualAidClass(tinyMCE.getAttrib(tinyMCE.tableElm, 'class'), false);		id = tinyMCE.getAttrib(tinyMCE.tableElm, 'id');		summary = tinyMCE.getAttrib(tinyMCE.tableElm, 'summary');		style = tinyMCE.serializeStyle(st);		dir = tinyMCE.getAttrib(tinyMCE.tableElm, 'dir');		lang = tinyMCE.getAttrib(tinyMCE.tableElm, 'lang');		background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");		orgTableWidth = width;		orgTableHeight = height;		action = "update";	}	addClassesToList('class', "table_styles");	// Update form	selectByValue(formObj, 'align', align);	selectByValue(formObj, 'class', className);	formObj.cols.value = cols;	formObj.rows.value = rows;	formObj.border.value = border;	formObj.cellpadding.value = cellpadding;	formObj.cellspacing.value = cellspacing;	formObj.width.value = width;	formObj.height.value = height;	formObj.bordercolor.value = bordercolor;	formObj.bgcolor.value = bgcolor;	formObj.id.value = id;	formObj.summary.value = summary;	formObj.style.value = style;	formObj.dir.value = dir;	formObj.lang.value = lang;	formObj.backgroundimage.value = background;	formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true); 	updateColor('bordercolor_pick', 'bordercolor');	updateColor('bgcolor_pick', 'bgcolor');	// Resize some elements	if (isVisible('backgroundimagebrowser'))		document.getElementById('backgroundimage').style.width = '180px';	// Disable some fields in update mode	if (action == "update") {		formObj.cols.disabled = true;		formObj.rows.disabled = true;	}}
meta: 10343	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/table.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/table/jscripts/table.js