Class CKEDITOR.dom.window
Extends
CKEDITOR.dom.domObject.
Defined in: core/dom/window.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CKEDITOR.dom.window(domWindow)
Represents a DOM window.
|
- Fields borrowed from class CKEDITOR.dom.domObject:
- $, removeCustomData
Method Attributes | Method Name and Description |
---|---|
focus()
Moves the selection focus to this window.
|
|
Gets the current position of the window's scroll.
|
|
Gets the width and height of this window's viewable area.
|
- Methods borrowed from class CKEDITOR.dom.domObject:
- clearCustomData, equals, getCustomData, getPrivate, getUniqueId, removeAllListeners, setCustomData
- Methods borrowed from class CKEDITOR.event:
- fire, fireOnce, hasListeners, on, removeListener
Class Detail
CKEDITOR.dom.window(domWindow)
Since:
3.0
Represents a DOM window.
var document = new CKEDITOR.dom.window( window );
- Parameters:
- {Object} domWindow
- A native DOM window.
Method Detail
{Undefined}
focus()
Since:
3.0
Moves the selection focus to this window.
var win = new CKEDITOR.dom.window( window ); win.focus();
{Object}
getScrollPosition()
Since:
3.0
Gets the current position of the window's scroll.
var win = new CKEDITOR.dom.window( window ); var pos = win.getScrollPosition(); alert( pos.x ); alert( pos.y );
- Returns:
- {Object} An object with the "x" and "y" properties containing the scroll position.
{Object}
getViewPaneSize()
Since:
3.0
Gets the width and height of this window's viewable area.
var win = new CKEDITOR.dom.window( window ); var size = win.getViewPaneSize(); alert( size.width ); alert( size.height );
- Returns:
- {Object} An object with the "width" and "height" properties containing the size.