Search code examples
google-chromeborderfckeditor

FCKEditor 2.6x seems to cut off at the bottom in Chrome


The bottom of the FCKEditor seems to cut off - the border is not seen. This only happens in Google Chrome. IE and Firefox seem to be ok. This is the FCKEditor control with barely any customization.

alt text

Is there anyway to fix this?


Solution

  • Appears to be a known bug in FCKEditor 2.6.5. Dravis in the CKEditor forums has posted a patch to fix the height calculation here:

    http://cksource.com/forums/viewtopic.php?p=41296#p41296

    (Copied from link, in case the forums are down):

    In fckeditor.html, I changed line 286 from this:

    eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;
    

    To this:

    if ( FCKBrowserInfo.IsSafari )
       eInnerElement.style.height = ( oCell.scrollHeight - 19 ) + 'px' ;
    else
       eInnerElement.style.height = ( oCell.scrollHeight - 2 ) + 'px' ;