includes/clientside/tinymce/plugins/table/js/cell.js
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
child 459 31c23016ab62
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
   131 	var inst = ed;
   131 	var inst = ed;
   132 	var formObj = document.forms[0];
   132 	var formObj = document.forms[0];
   133 	var curCellType = td.nodeName.toLowerCase();
   133 	var curCellType = td.nodeName.toLowerCase();
   134 	var celltype = getSelectValue(formObj, 'celltype');
   134 	var celltype = getSelectValue(formObj, 'celltype');
   135 	var doc = inst.getDoc();
   135 	var doc = inst.getDoc();
       
   136 	var dom = ed.dom;
   136 
   137 
   137 	if (!skip_id)
   138 	if (!skip_id)
   138 		td.setAttribute('id', formObj.id.value);
   139 		td.setAttribute('id', formObj.id.value);
   139 
   140 
   140 	td.setAttribute('align', formObj.align.value);
   141 	td.setAttribute('align', formObj.align.value);
   183 
   184 
   184 		td.parentNode.replaceChild(newCell, td);
   185 		td.parentNode.replaceChild(newCell, td);
   185 		td = newCell;
   186 		td = newCell;
   186 	}
   187 	}
   187 
   188 
       
   189 	dom.setAttrib(td, 'style', dom.serializeStyle(dom.parseStyle(td.style.cssText)));
       
   190 
   188 	return td;
   191 	return td;
   189 }
   192 }
   190 
   193 
   191 function changedBackgroundImage() {
   194 function changedBackgroundImage() {
   192 	var formObj = document.forms[0];
   195 	var formObj = document.forms[0];