Patty Posted November 19, 2009 Share Posted November 19, 2009 I tried with both Firefox 3.5 and IE 7 and the same thing happens: When using a predefined reply on a ticket, when I click the link to add it to my reply everything I wrote before is erased, except the email signature. It makes it useless to use this feature. I placed the cursor after and before the text, also after the signature, but it will erase the text just the same. Has anyone else notice this? 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted November 20, 2009 Share Posted November 20, 2009 Has anyone else notice this? Yes. That's why we insert the predefined reply first, and add any additional text afterwards. 0 Quote Link to comment Share on other sites More sharing options...
Patty Posted November 20, 2009 Author Share Posted November 20, 2009 What if I need to use more than one? And what if I don't know I will need one until half way thru the reply? Can this be fixed, Matt? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted November 20, 2009 WHMCS Support Manager Share Posted November 20, 2009 Ctrl C + Ctrl V 0 Quote Link to comment Share on other sites More sharing options...
Patty Posted November 20, 2009 Author Share Posted November 20, 2009 I thought the purpose of predefined replies is exactly NOT to use Ctrl C + Ctrl V. It's a pretty much useless function then. 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted November 20, 2009 Share Posted November 20, 2009 There's a lot of room for improvement on the predefined replies and Insert KB Link in my opinion. Adding predefined reply where the cursor is, same with KB links and making them SEO friendly. The ability to use more than one would be good too. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted November 20, 2009 WHMCS CEO Share Posted November 20, 2009 Javascript has no built in support for inserting text at the cursor point so I don't know how it could be done. If someone does, let me know but I wouldn't say predefines are useless because of it. Just predefine so it answers the entire question or load it and then modify as necessary - they're a godsend for me here. Matt 0 Quote Link to comment Share on other sites More sharing options...
Patty Posted November 20, 2009 Author Share Posted November 20, 2009 Hey, Matt. Yeah, they help a lot, I know. I was just being sarcastic over John's CTRL C + CTRL V comment, sorry. I hope you can find a better way of making it work without this issue. Other than that, it is indeed a great feature. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 20, 2009 Share Posted November 20, 2009 Javascript has no built in support for inserting text at the cursor point so I don't know how it could be done. If someone does, let me know but I wouldn't say predefines are useless because of it. Just predefine so it answers the entire question or load it and then modify as necessary - they're a godsend for me here. Matt Here ya go Matt, I fould this and modified it slightly. It should do what you need. <script type="text/javascript"> {literal} function insert(el,ins) { window.lstText={}; if (el.setSelectionRange){ el.value = el.value.substring(0,el.selectionStart) + ins + el.value.substring(el.selectionStart,el.selectionEnd) + el.value.substring(el.selectionEnd,el.value.length); } else if (document.selection && document.selection.createRange) { el.focus(); var range = document.selection.createRange(); range.text = ins + range.text; } } {/literal} </script> <form> <input type="button" value="hello" onclick="insert(window.lstText,'hello')"> <input type="button" value="hi" onclick="insert(window.lstText,'hi')"> <br /> <textarea rows="7" cols="30" name="txt1" onfocus="window.lstText=this;"> This is sample text, click anywhere in here then choose on of the buttons above to see text inserted. </textarea> <textarea rows="7" cols="30" name="txt2" onfocus="window.lstText=this;"> This is sample text, click anywhere in here then choose on of the buttons above to see text inserted. </textarea> </form> 0 Quote Link to comment Share on other sites More sharing options...
Sandor Posted March 1, 2010 Share Posted March 1, 2010 I want to also say that inserting at the cursor would be GREAT - we have a lot of tickets where they ask a couple questions and we don't want to open new tickets for each one, so inserting multiple replies or links would be smashing! 0 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.