如何在Ajax Html编辑器中获取光标位置? [英] How Do I Get A Cursor Position In Ajax Html Editor ?

查看:107
本文介绍了如何在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.


这篇关于如何在Ajax Html编辑器中获取光标位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆