TinyMCE_Selection
TinyMCE_Selection(<TinyMCE_Control> inst)
Constructs a Selection instance and binds it to the specificed TinyMCE editor control.
Parameters
inst - TinyMCE editor control instance.
| TinyMCE_Selection(<TinyMCE_Control> inst)
Constructs a Selection instance and binds it to the specificed TinyMCE editor control. |
| void | getAbsPosition(<HTMLNode> n)
Returns a global absolute position calculating both the container iframe location and the position within. |
| 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. |