Ive added a few lines at the end of initEditor() to change some of the characteristics of the "objContent" editor. One of the things is to change the depth of the IFrame to the depth of objContent so that the view is pretty much as the web page without scroolbars down the right hand side of "objContent".
Im not a javascript guru... but do have this working...
...if I output a vriable to screen...
Heres the code...
// Try and make the iFrame the height of the text within the editor
// thus loosing the Scrollbar
var toolbarHeight=divToolbar.scrollHeight ;
var contentHeight=objContent.DOM.body.scrollHeight ;
var overallHeight=contentHeight + toolbarHeight + 2 ; //Add 2 for small scrolling glitch
alert(overallHeight) //*** Only works with this ***//
self.resizeTo(URLParams['width'],overallHeight);
This code I think is working great... only if I have the alert. Without the alert "overallHeight" seems to be a wildly different value.
Is this a JS bug!!
Im not a javascript guru... but do have this working...
...if I output a vriable to screen...
Heres the code...
// Try and make the iFrame the height of the text within the editor
// thus loosing the Scrollbar
var toolbarHeight=divToolbar.scrollHeight ;
var contentHeight=objContent.DOM.body.scrollHeight ;
var overallHeight=contentHeight + toolbarHeight + 2 ; //Add 2 for small scrolling glitch
alert(overallHeight) //*** Only works with this ***//
self.resizeTo(URLParams['width'],overallHeight);
This code I think is working great... only if I have the alert. Without the alert "overallHeight" seems to be a wildly different value.
Is this a JS bug!!
RE: Changing the Depth of the Editor...
would be curious t know ,)
regards
-Wolfgang