Hi all,
I test this nice editor with word2003 skin (sample N°5 : sample05.html), but have probleme to set height to 100%
I've try to change height in fckeditor.js :
this.InstanceName = instanceName ;
this.Width = width || '100%' ;
this.Height = height || '100%' ;
this.ToolbarSet = toolbarSet || 'Default' ;
this.Value = value || '' ;
this.BasePath = FCKeditor.BasePath ;
this.CheckBrowser = true ;
this.DisplayErrors = true ;
But it's not working, just pixel value work (width 100% work fine)
http://www.carrouget.fr/solon/fckeditor ... office2003
Sat, 01/24/2009 - 10:42
#1
Re: Probleme with Height 100%
Help please !
Re: Probleme with Height 100%
Method 1
thats happening for 2 reasons
1. cox the source file (sample05.html) is overwriting the height given in fckeditor.js
find the line bellow in sample.html and either delete or simply comment the line
oFCKeditor.Height = 300;
2. according to my testing
this.Height = height || '100%'; ==> doesn't work in this case, but changing it as follows will give you "100%" height
this.Height = innerHeight || '100%';
-----------------------------------------------------------------------
Method 2
simply replace the following line (in sample05.html)
oFCKeditor.Height = 300;
with
oFCKeditor.Height = window.innerHeight;
BUT, after doing this you'll see that the editor will stretch beyond the window's viewable area. thats is cox, of the toolbars and frames (if any) in that page).