The forum operates in read-only mode. Please head to StackOverflow for support.
FCKConfig.PluginsPath = FCKConfig.BasePath+'plugins/'; FCKConfig.Plugins.Add( 'autogrow' ) ; FCKConfig.AutoGrowMax = 800 ;
window.frameElement.height = iMainFrameSize;
if(window.frameElement.style.height) { window.frameElement.style.height=iMainFrameSize; } else { window.frameElement.height = iMainFrameSize; }
function FCKAutoGrow_Check() { var oInnerDoc = FCK.EditorDocument ; var iFrameHeight, iInnerHeight ; if ( FCKBrowserInfo.IsIE ) { iFrameHeight = FCK.EditorWindow.frameElement.offsetHeight ; iInnerHeight = oInnerDoc.body.scrollHeight ; } else { iFrameHeight = FCK.EditorWindow.innerHeight ; iInnerHeight = oInnerDoc.body.offsetHeight ; } var iDiff = iInnerHeight - iFrameHeight ; if ( iDiff != 0 ) { var iMainFrameSize = window.frameElement.offsetHeight ; if ( iDiff > 0 && iMainFrameSize < FCKConfig.AutoGrowMax ) { iMainFrameSize += iDiff ; if ( iMainFrameSize > FCKConfig.AutoGrowMax ) iMainFrameSize = FCKConfig.AutoGrowMax ; } else if ( iDiff < 0 && iMainFrameSize > FCKAutoGrow_Min ) { iMainFrameSize += iDiff ; if ( iMainFrameSize < FCKAutoGrow_Min ) iMainFrameSize = FCKAutoGrow_Min ; } else return ; window.frameElement.height = iMainFrameSize; window.frameElement.style.height = iMainFrameSize+"px"; // Gecko browsers use an onresize handler to update the innermost // IFRAME's height. If the document is modified before the onresize // is triggered, the plugin will miscalculate the new height. Thus, // forcibly trigger onresize. #1336 if ( typeof window.onresize == 'function' ) window.onresize() ; } }
Re: Autogrow plugin is not working FF / IE
if(window.frameElement.style.height) { window.frameElement.style.height=iMainFrameSize; } else { window.frameElement.height = iMainFrameSize; }Re: Autogrow plugin is not working FF / IE
Re: Autogrow plugin is not working FF / IE
fckplugins.js, lines 65-66:
window.frameElement.height = iMainFrameSize;
window.frameElement.style.height = iMainFrameSize+"px";
The full function:
function FCKAutoGrow_Check() { var oInnerDoc = FCK.EditorDocument ; var iFrameHeight, iInnerHeight ; if ( FCKBrowserInfo.IsIE ) { iFrameHeight = FCK.EditorWindow.frameElement.offsetHeight ; iInnerHeight = oInnerDoc.body.scrollHeight ; } else { iFrameHeight = FCK.EditorWindow.innerHeight ; iInnerHeight = oInnerDoc.body.offsetHeight ; } var iDiff = iInnerHeight - iFrameHeight ; if ( iDiff != 0 ) { var iMainFrameSize = window.frameElement.offsetHeight ; if ( iDiff > 0 && iMainFrameSize < FCKConfig.AutoGrowMax ) { iMainFrameSize += iDiff ; if ( iMainFrameSize > FCKConfig.AutoGrowMax ) iMainFrameSize = FCKConfig.AutoGrowMax ; } else if ( iDiff < 0 && iMainFrameSize > FCKAutoGrow_Min ) { iMainFrameSize += iDiff ; if ( iMainFrameSize < FCKAutoGrow_Min ) iMainFrameSize = FCKAutoGrow_Min ; } else return ; window.frameElement.height = iMainFrameSize; window.frameElement.style.height = iMainFrameSize+"px"; // Gecko browsers use an onresize handler to update the innermost // IFRAME's height. If the document is modified before the onresize // is triggered, the plugin will miscalculate the new height. Thus, // forcibly trigger onresize. #1336 if ( typeof window.onresize == 'function' ) window.onresize() ; } }Re: Autogrow plugin is not working FF / IE
i use php version of fckeditor and when i deleted line 'height' from fckeditor_php5.php file it started to work in ff3, ie7, ie6, but it's still not working in opera.
Re: Autogrow plugin is not working FF / IE
When I paste code from this topic, texarea scrollbar jump after each 3 click.