2012-02-29 2 views
0

RadEditor와 RadEditor에 텍스트를 넣는 단추를 사용하고 있습니다. RadEditor에서 버튼을 클릭하고 내용을 배치 한 후에 커서가 컨텐츠의 끝 부분에 오도록 할 수 있는지 궁금합니다. 지금은 RadEditor에 초점을 맞추는 순간부터 시작됩니다.RadEditor의 내용을 끝까지 커서를 어떻게 이동합니까?

도와주세요 !!

oshi

답변

0
var editor = *you'll need to provide the $find() functionality to get an instance of your page's editor*; 

editor.setFocus(); 
var doc = editor.get_document(); 

doc.execCommand("SelectAll", null, false); 

//Collapse selection to the end 
editor.getSelection().collapse(); 
관련 문제