Ticket #1576 (new Bug)

Opened 10 months ago

Last modified 5 months ago

Editor height is always =300px

Reported by: B_aniaczek Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: SVN
Keywords: Pending WorksForMe HasPatch Cc:

Description

MediaWiki 1.11.0, browsers: FireFox 2.0, MSIE 7.0

Editor height is always set to 300. Proposition: In file FCKeditor/FCKeditor.body.php replace lines

function onLoadFCKeditor()
[...]
height = ( !height || height < 300 ) ? 300 : height ;

with code:

function onLoadFCKeditor() {

 var box = document.getElementById('wpTextbox1');
 if ( box ) {

  var height = $wgFCKEditorHeight ;
  if ( height == 0 ) {

   height = box.offsetHeight;
   var tBar = document.getElementById('toolbar');
   if ( tBar )
    height += tBar.offsetHeight;
   height += 1;

   if ( ! height ) {
    var aTop = tBar;
    if ( ! aTop )
     aTop = box;
    var aBottom = document.getElementById('editpage-copywarn');

    if ( aTop && aBottom )
     height = aBottom.offsetTop - aTop.offsetTop - 6;
   }
  }

  // Enforce a minimum height.
  height = ( !height || height < 300 ) ? 300 : height ;

Change History

Changed 7 months ago by w.olchawa

  • keywords HasPatch added
  • version set to SVN

Changed 5 months ago by wwalc

  • keywords Pending WorksForMe added

I tried to reproduce it on IE6/IE7/FF 2.0.0.13 + MediaWiki 1.12.0/1.11.1 + FCKeditor 2.5.1.

FCKeditor height was set automatically to fit the page (much more than 300px), could you confirm that this problem doesn't exist anymore?

Note: See TracTickets for help on using tickets.