[geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/plugins/autogrow fckplugin.js, 1.5, 1.6
Blaine Lang
blaine at qs1489.pair.com
Sun Aug 10 12:46:39 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/plugins/autogrow
In directory qs1489.pair.com:/tmp/cvs-serv4567/editor/plugins/autogrow
Modified Files:
fckplugin.js
Log Message:
Upgrade to FCKeditor ver 2.6.3
Index: fckplugin.js
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/plugins/autogrow/fckplugin.js,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** fckplugin.js 5 May 2008 00:35:26 -0000 1.5
--- fckplugin.js 10 Aug 2008 16:46:36 -0000 1.6
***************
*** 1,3 ****
! /*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
--- 1,3 ----
! /*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
***************
*** 27,75 ****
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 ;
! // 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() ;
! }
}
--- 27,76 ----
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() ;
! }
}
More information about the geeklog-cvs
mailing list