Telerik 如何将光标移动到RadEditor中内容的末尾?
我使用的是RadEditor和一个按钮,可以将一些文本放入RadEditor。我想知道在我点击按钮并将内容放入RadEditor后,如何将光标放在内容的末尾。现在,我给出RadEditor焦点的时候才刚刚开始 请帮忙 奥希Telerik 如何将光标移动到RadEditor中内容的末尾?,telerik,radeditor,Telerik,Radeditor,我使用的是RadEditor和一个按钮,可以将一些文本放入RadEditor。我想知道在我点击按钮并将内容放入RadEditor后,如何将光标放在内容的末尾。现在,我给出RadEditor焦点的时候才刚刚开始 请帮忙 奥希 var editor = *you'll need to provide the $find() functionality to get an instance of your page's editor*; editor.setFocus(); var doc = e
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();