RichTextEditor Demo
Home Pricing

## editor.selectDoc(bStart)

Selects the document. The bStart is a boolean value.

#### Syntax

`editor.selectDoc(bStart)`

###### Parameter

`Type: boolean`

`Optional. True collapses the Range to its start, false to its end. If omitted, it defaults to false.`

## Example:

1. var editor1 = new RichTextEditor("#div_editor1");
2. var img=editor1.document.createElement("IMG");
3. img.src="images/editor-image.png";
4. editor1.insertElement(img);
5. editor1.selectDoc(img)