Search code examples
jquerysetfocusredactorredactor.js

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


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?


Solution

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

    this.focus.setEnd();