如何在Ajax Html编辑器中获取光标位置?

问题描述:

我在弹出菜单弹出菜单中有一个ajax html编辑器,我想在弹出执行后插入一些数据但是如何处理隐藏字段中的光标位置可以帮助我

I have a ajax html editor in that popup menu i am using after the pop up execution i want to insert some of the data but how to handle the cursor position in hidden field can any body please help me

请参阅答案 Re:需要在Ajax HTML编辑器中获取光标位置。 [ ^ ]。



你需要找出光标的最后一个索引并插入你想要的任何内容。
See the answer Re: Need to get cursor position in Ajax HTML Editor.[^].

You need to find out the last index of cursor and insert whatever you want accordingly.