You are not logged in.
Pages: 1
Please Help, I am trying to port FullScreen plugin to FCKeditor and have some problems.
I use CMS Drupal with both xinha-nightly and FCKeditor plugins installed on separate
local sites and it is possible to compare the results of work of original plugin and my porting.
My browser is IE 6.
Problem: All works properly except hiding scrollbars.
I use following steps to maximize editor:
1) defining reference to FCKeditor's iframe element, where it is loaded in:
var FCKWindow=window.parent.document.getElementById(FCK.Name+ '___Frame');
2) saving old values: scroll poses of window.parent; height and width of FCKWindow
3) scrolling and changing properties of FCKWindow:
window.parent.scroll(0,0);
FCKWindow.style.position = 'absolute';
FCKWindow.style.zIndex = 999;
FCKWindow.style.left = 0;
FCKWindow.style.top = 0;
this._isFullScreen = true;
resetScroll();
4) setting overflow property of parent's window body:
window.parent.document.body.style.overflow='hidden';
5) resizing FCKWindow:
sizeItUp();
What action do I omit before 4th step, when scrolls are hid?
P.S. I print (window.parent.document.body) properties in my porting and (document.body)
properties in original plugin before 4th step and have found, that clientHeight and scrollHeight
properties in my porting have the same values. But in original plugin's case they differ. And I
can't change those values bacause this properties are read-only.
Offline
Plugin with desired functionality is already created by Paul Moers and is named FitWindow.
(http://www.saulmade.nl/FCKeditor/FCKPlugins.php)
So, thanks 4 all, assistance is not already needed.
Offline
Hey thanks for the publicity
You should note a shortcoming of the FitWindow plugin that I haven't been able to solve yet: If the FCKeditor is contained in an object with margin (i.e. apart from the body) it won't be positioned at the very top in the window viewpane. I'm not sure how this can be solved. Maybe counting all margins of the parents and positioning the editor at -totalMargins will do. But currently I have no time to fix it. If someone wants to give it a try, please do!!
Paul
Please post anything concerning the plugin at http://sourceforge.net/forum/forum.php? … _id=257179
Offline
Pages: 1