Sina Mirhejazi
Sina Mirhejazi

Reputation: 322

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?

Upvotes: 1

Views: 1080

Answers (1)

Sharad Biradar
Sharad Biradar

Reputation: 2074

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

this.focus.setEnd();

Upvotes: 2

Related Questions