Class Index | File Index

Classes


Class gui.Caret


Defined in: Caret.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
gui.Caret(selection, rootNode)
Class that represents a caret in a document.
Method Summary
Method Attributes Method Name and Description
 
Synchronize the cursor with the current selection.
Class Detail
gui.Caret(selection, rootNode)
Class that represents a caret in a document. In text nodes, a native caret is used via the HTML attribute contentEditable. Outside of text nodes, an empty element representing the caret is used.
Parameters:
selection
rootNode
Method Detail
{undefined} updateToSelection()
Synchronize the cursor with the current selection. If there is a single collapsed selection range, the cursor will be placed there. If not, the cursor will be removed from the document tree.
Returns:
{undefined}

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 30 2011 22:56:22 GMT+0200 (CEST)