ldb68 Posted June 9, 2013 Share Posted June 9, 2013 Is possible to insert html text into UniHtmlMemo at current cursor postion? How? Quote Link to comment Share on other sites More sharing options...
ldb68 Posted July 5, 2013 Author Share Posted July 5, 2013 I try to get cursor position inside a TUniHtmlMemo on client side with js. The problem is that the TUniHtmlMemo I need to access the textarea of the component (ctl retun more div html tag). Somebody can help? function Onclick(sender) { try { var ctl = document.getElementById(sender.id); if (ctl != null) { var startPos = ctl.selectionStart; /*var endPos = ctl.selectionEnd;*/ alert(startPos); } } catch(err) { txt="There was an error on this page.\n\n"; txt+="Error description: " + err.message + "\n\n"; txt+="Click OK to continue.\n\n"; alert(txt); } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.