问题
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