Definition
Namespace:Telerik.Web.UI.Editor
Inheritance: Telerik.Web.UI.Editor.Selection
Methods
Collapses a selection to the starting or ending position.
collapse(Boolean toStart): void
The direction in which to collapse the selection. If true the selection will collapse from end to start.
Returns the browser's Selection object
getBrowserSelection(): Object
Object
Returns the selection's content as HTML
getHtml(): String
String
Returns a reference to the selection's parent DOM element
getParentElement(): Element
Element
Returns a reference to a range object
getRange(): Object
Object
Returns the selected content as plain text
getText(): String
String
Specifies whether the current selection is a control or not.
isControl(): Boolean
Boolean
Recreates the selection range.
moveToElementText(Element element): void
DOM element to be selected.
Pastes string at current selection
pasteHtml(String htmlString, Boolean bSelContent): void
String to be pasted
bSelContentBooleanSpecifies whether to select pasted content after execution
Adds an element to current selection
selectElement(Element oElement): void
DOM element to be added
Selects the previously stored range
selectRange(Object range): void