标签: ckeditor5
ckeditor5
当我使用editor.editing.view.focus()时,光标位于文本的开头,如何将光标移至文本的结尾?
editor.editing.view.focus()
答案 0 :(得分:0)
为此,请在editor model中设置选择:
editor.model.change( writer => { writer.setSelection( writer.createPositionAt( editor.model.document.getRoot(), 'end' ) ); } );