Ticket #1576 (new Bug)
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
Note: See
TracTickets for help on using
tickets.