Class CKEDITOR.dom.domObject
Extends
CKEDITOR.event.
Defined in: core/dom/domobject.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CKEDITOR.dom.domObject(nativeDomObject)
Represents a DOM object.
|
Field Attributes | Field Name and Description |
---|---|
The native DOM object represented by this class instance.
|
|
Gets the value set to a data slot in this object.
|
|
Sets a data slot value for this object.
|
- Methods borrowed from class CKEDITOR.event:
- fire, fireOnce, hasListeners, implementOn, on, removeListener
Class Detail
CKEDITOR.dom.domObject(nativeDomObject)
Since:
3.0
Represents a DOM object. This class is not intended to be used directly. It
serves as the base class for other classes representing specific DOM
objects.
- Parameters:
- {Object} nativeDomObject
- A native DOM object.
Field Detail
{Object}
$
Since:
3.0
The native DOM object represented by this class instance.
var element = new CKEDITOR.dom.element( 'span' ); alert( element.$.nodeType ); // "1"
{Object}
getCustomData
Since:
3.0
Gets the value set to a data slot in this object.
var element = new CKEDITOR.dom.element( 'span' ); alert( element.getCustomData( 'hasCustomData' ) ); // e.g. 'true'
- See:
- CKEDITOR.dom.domObject.prototype.setCustomData
{CKEDITOR.dom.domObject}
setCustomData
Since:
3.0
Sets a data slot value for this object. These values are shared by all
instances pointing to that same DOM object.
var element = new CKEDITOR.dom.element( 'span' ); element.setCustomData( 'hasCustomData', true );
- See:
- CKEDITOR.dom.domObject.prototype.getCustomData