includes/clientside/tinymce/plugins/table/js/cell.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 543 dffcbfbc4e59
equal deleted inserted replaced
458:c433348f3628 459:31c23016ab62
   175 		var newCell = doc.createElement(celltype);
   175 		var newCell = doc.createElement(celltype);
   176 
   176 
   177 		for (var c=0; c<td.childNodes.length; c++)
   177 		for (var c=0; c<td.childNodes.length; c++)
   178 			newCell.appendChild(td.childNodes[c].cloneNode(1));
   178 			newCell.appendChild(td.childNodes[c].cloneNode(1));
   179 
   179 
   180 		for (var a=0; a<td.attributes.length; a++) {
   180 		for (var a=0; a<td.attributes.length; a++)
   181 			var attr = td.attributes[a];
   181 			ed.dom.setAttrib(newCell, td.attributes[a].name, ed.dom.getAttrib(td, td.attributes[a].name));
   182 			newCell.setAttribute(attr.name, attr.value);
       
   183 		}
       
   184 
   182 
   185 		td.parentNode.replaceChild(newCell, td);
   183 		td.parentNode.replaceChild(newCell, td);
   186 		td = newCell;
   184 		td = newCell;
   187 	}
   185 	}
   188 
   186