Ticket #617: fck_tablecell.html.patch

File fck_tablecell.html.patch, 1.7 KB (added by Geir Helge Tjøstolvsen-Schmidt, 18 years ago)

Suggested fix

  • fck_tablecell.html

    old new  
    6464                if ( oCell.attributes['noWrap'] != null && oCell.attributes['noWrap'].specified )
    6565                        GetE('selWordWrap').value = !oCell.noWrap ;
    6666
     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
    6772                GetE('txtWidth').value                  = iWidth ;
    6873                GetE('txtHeight').value                 = GetAttribute( oCell, 'height' ) ;
    6974                GetE('selHAlign').value                 = GetAttribute( oCell, 'align' ) ;
     
    7176                GetE('txtRowSpan').value                = GetAttribute( oCell, 'rowSpan' ) ;
    7277                GetE('txtCollSpan').value               = GetAttribute( oCell, 'colSpan' ) ;
    7378                GetE('txtBackColor').value              = GetAttribute( oCell, 'bgColor' ) ;
    74                 GetE('txtBorderColor').value    = GetAttribute( oCell, 'borderColor' ) ;
     79                GetE('txtBorderColor').value    = sBorderColor ;
    7580//              GetE('cmbFontStyle').value              = oCell.className ;
    7681        }
    7782}
     
    9196                else
    9297                        aCells[i].removeAttribute( 'noWrap' ) ;
    9398
     99                aCells[i].style['borderColor'] = GetE('txtBorderColor').value;
     100
    94101                SetAttribute( aCells[i], 'height'               , GetE('txtHeight').value ) ;
    95102                SetAttribute( aCells[i], 'align'                , GetE('selHAlign').value ) ;
    96103                SetAttribute( aCells[i], 'vAlign'               , GetE('selVAlign').value ) ;
    97104                SetAttribute( aCells[i], 'rowSpan'              , GetE('txtRowSpan').value ) ;
    98105                SetAttribute( aCells[i], 'colSpan'              , GetE('txtCollSpan').value ) ;
    99106                SetAttribute( aCells[i], 'bgColor'              , GetE('txtBackColor').value ) ;
    100                 SetAttribute( aCells[i], 'borderColor'  , GetE('txtBorderColor').value ) ;
    101107//              SetAttribute( aCells[i], 'className'    , GetE('cmbFontStyle').value ) ;
    102108        }
    103109
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy