Class TinyMCE_Selection

Object
   |
   +--TinyMCE_Selection

class TinyMCE_Selection

Defined in TinyMCE_Selection.class.js


Field Summary
 Object instance
          
 
Constructor Summary
TinyMCE_Selection (<TinyMCE_Control> inst)
            Constructs a Selection instance and binds it to the specificed TinyMCE editor control.
 
Method Summary
 TinyMCE_Bookmark getBookmark(<boolean> simple)
           Returns a selection bookmark that can be restored later with moveToBookmark.
 HTMLElement getFocusElement()
           Returns the currently selected/focused element.
 DOMRange getRng()
           Returns the browsers selections first range instance.
 DOMSelection getSel()
           Returns the browsers selection instance.
 string getSelectedHTML()
           Returns the selected HTML code.
 string getSelectedText()
           Returns the selected text.
 boolean moveToBookmark(<TinyMCE_Bookmark> bookmark)
           Restores the selection to the specified bookmark.
 void scrollToNode(<HTMLNode> node)
           Scrolls to the specified node location.
 void selectNode(<HTMLNode> node, <boolean> collapse, <boolean> select_text_node, <boolean> to_start)
           Selects the specified node.

Field Detail

instance

Object instance

Constructor Detail

TinyMCE_Selection

TinyMCE_Selection(<TinyMCE_Control> inst)

Method Detail

getBookmark

TinyMCE_Bookmark getBookmark(<boolean> simple)

getFocusElement

HTMLElement getFocusElement()

getRng

DOMRange getRng()

getSel

DOMSelection getSel()

getSelectedHTML

string getSelectedHTML()

getSelectedText

string getSelectedText()

moveToBookmark

boolean moveToBookmark(<TinyMCE_Bookmark> bookmark)

scrollToNode

void scrollToNode(<HTMLNode> node)

selectNode

void selectNode(<HTMLNode> node, <boolean> collapse, <boolean> select_text_node, <boolean> to_start)


Documentation generated by JSDoc on Fri Feb 24 13:38:20 2006