Ticket #617: fck_tablecell.html.patch
File fck_tablecell.html.patch, 1.7 KB (added by , 17 years ago) |
---|
-
fck_tablecell.html
old new 64 64 if ( oCell.attributes['noWrap'] != null && oCell.attributes['noWrap'].specified ) 65 65 GetE('selWordWrap').value = !oCell.noWrap ; 66 66 67 if (oCell.style['borderColor'].search('rgb') != -1) 68 var sBorderColor = oCell.style['borderColor'].match(/rgb\([^)]*\)/i); 69 else 70 var sBorderColor = oCell.style['borderColor']; 71 67 72 GetE('txtWidth').value = iWidth ; 68 73 GetE('txtHeight').value = GetAttribute( oCell, 'height' ) ; 69 74 GetE('selHAlign').value = GetAttribute( oCell, 'align' ) ; … … 71 76 GetE('txtRowSpan').value = GetAttribute( oCell, 'rowSpan' ) ; 72 77 GetE('txtCollSpan').value = GetAttribute( oCell, 'colSpan' ) ; 73 78 GetE('txtBackColor').value = GetAttribute( oCell, 'bgColor' ) ; 74 GetE('txtBorderColor').value = GetAttribute( oCell, 'borderColor' );79 GetE('txtBorderColor').value = sBorderColor ; 75 80 // GetE('cmbFontStyle').value = oCell.className ; 76 81 } 77 82 } … … 91 96 else 92 97 aCells[i].removeAttribute( 'noWrap' ) ; 93 98 99 aCells[i].style['borderColor'] = GetE('txtBorderColor').value; 100 94 101 SetAttribute( aCells[i], 'height' , GetE('txtHeight').value ) ; 95 102 SetAttribute( aCells[i], 'align' , GetE('selHAlign').value ) ; 96 103 SetAttribute( aCells[i], 'vAlign' , GetE('selVAlign').value ) ; 97 104 SetAttribute( aCells[i], 'rowSpan' , GetE('txtRowSpan').value ) ; 98 105 SetAttribute( aCells[i], 'colSpan' , GetE('txtCollSpan').value ) ; 99 106 SetAttribute( aCells[i], 'bgColor' , GetE('txtBackColor').value ) ; 100 SetAttribute( aCells[i], 'borderColor' , GetE('txtBorderColor').value ) ;101 107 // SetAttribute( aCells[i], 'className' , GetE('cmbFontStyle').value ) ; 102 108 } 103 109