← すべてのドキュメント

editor.selectDoc(bStart)

文書を選択します。bStart はブール値です。

構文

editor.selectDoc(bStart)

パラメーター

型:boolean

省略可能。True では Range を先頭に、false では末尾に折りたたみます。省略すると文書全体を選択します。

使用例

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