Class CKFinder.dom.document
Extends
CKFinder.dom.domObject.
Constructor Attributes | Constructor Name and Description |
---|---|
CKFinder.dom.document(domDocument)
Represents a DOM document.
|
- Fields borrowed from class CKFinder.dom.domObject:
- $
Method Attributes | Method Name and Description |
---|---|
getById(elementId)
Gets and element based on its id.
|
- Methods borrowed from class CKFinder.dom.domObject:
- equals, getCustomData, setCustomData
Class Detail
CKFinder.dom.document(domDocument)
Since:
2.0
Represents a DOM document.
var doc = dialog.getElement().getDocument();
- Parameters:
- {Object} domDocument
- A native DOM document.
Method Detail
{CKFinder.dom.element}
getById(elementId)
Since:
2.0
Gets and element based on its id.
var document = dialog.getElement().getDocument(); var element = document.getById( 'myElement' ); alert( element.getId() ); // "myElement"
- Parameters:
- {String} elementId
- The element id.
- Returns:
- {CKFinder.dom.element} The element instance, or null if not found.