Redactor editor - How to set cursor at the end on focus

烈酒焚心 提交于 2019-12-11 13:58:42

问题


I'm working on a project that uses redactor as an editor. So every time I set focus using jQuery it's cursor goes on start. I see an option focusEnd on it's documentations but it does not work maybe because I'm using rtl direction.

Any idea?


回答1:


You can use below code to set cursor at the end:

this.focus.setEnd();



来源:https://stackoverflow.com/questions/28982416/redactor-editor-how-to-set-cursor-at-the-end-on-focus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!