本文介绍了Redactor编辑器-如何将光标设置在焦点的末端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究一个使用redactor作为编辑器的项目.因此,每当我使用jQuery设置焦点时,光标就会开始.我在文档的文档上看到了focusEnd选项,但它可能无法正常工作,可能是因为我使用的是rtl方向.
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.
有什么主意吗?
推荐答案
您可以使用以下代码在末尾设置光标:
You can use below code to set cursor at the end:
this.focus.setEnd();
this.focus.setEnd();
这篇关于Redactor编辑器-如何将光标设置在焦点的末端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!