Code Index | File Index

Namespaces

Classes


Class CKEDITOR.dom.text


Extends CKEDITOR.dom.node.

Defined in: core/dom/text.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
CKEDITOR.dom.text(text, ownerDocument)
Represents a DOM text node.
Field Summary
Field Attributes Field Name and Description
 
$
The native DOM text node represented by this class instance.
Methods borrowed from class CKEDITOR.dom.node:
appendTo, getParent, insertAfter, insertBefore
Methods borrowed from class CKEDITOR.dom.domObject:
equals, getCustomData, setCustomData
Methods borrowed from class CKEDITOR.event:
fire, fireOnce, hasListeners, implementOn, on, removeListener
Class Detail
CKEDITOR.dom.text(text, ownerDocument)
Since: 3.0
Represents a DOM text node.
var nativeNode = document.createTextNode( 'Example' );
var text = CKEDITOR.dom.text( nativeNode );
var text = CKEDITOR.dom.text( 'Example' );
Parameters:
{Object|String} text
A native DOM text node or a string containing the text to use to create a new text node.
{CKEDITOR.dom.document} ownerDocument Optional
The document that will contain the node in case of new node creation. Defaults to the current document.
Field Detail
{Object} $
Since: 3.0
The native DOM text node represented by this class instance.
var element = new CKEDITOR.dom.text( 'Example' );
alert( element.$.nodeType );  // "3"

Documentation generated by JsDoc Toolkit