includes/clientside/tinymce/plugins/table/js/cell.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 543 dffcbfbc4e59
--- a/includes/clientside/tinymce/plugins/table/js/cell.js	Fri Feb 22 12:51:53 2008 -0500
+++ b/includes/clientside/tinymce/plugins/table/js/cell.js	Sun Feb 24 12:50:52 2008 -0500
@@ -177,10 +177,8 @@
 		for (var c=0; c<td.childNodes.length; c++)
 			newCell.appendChild(td.childNodes[c].cloneNode(1));
 
-		for (var a=0; a<td.attributes.length; a++) {
-			var attr = td.attributes[a];
-			newCell.setAttribute(attr.name, attr.value);
-		}
+		for (var a=0; a<td.attributes.length; a++)
+			ed.dom.setAttrib(newCell, td.attributes[a].name, ed.dom.getAttrib(td, td.attributes[a].name));
 
 		td.parentNode.replaceChild(newCell, td);
 		td = newCell;