Sherzod Posted April 26, 2022 Share Posted April 26, 2022 14 minutes ago, Sherzod said: I have tested. Works for me. 52 minutes ago, AntonioCuomo said: I made the change but am forced to reclick on unihtmlmemo to deselect the text Which browser are you using? Can you make a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 26, 2022 Share Posted April 26, 2022 Note we are using this code at the end: ....getWin().getSelection().removeAllRanges() Quote Link to comment Share on other sites More sharing options...
AntonioCuomo Posted April 26, 2022 Share Posted April 26, 2022 3 hours ago, Sherzod said: Note we are using this code at the end: ....getWin().getSelection().removeAllRanges() j have this code JSCall('relayCmd', ['selectAll']); JSCallDefer('relayCmd', ['copy'], 200); JSCode('Ext.defer(function(){ajaxRequest('+ JSName +', "getSelection", ["selectedText="+'+ JSName +'.getWin().getSelection().getRangeAt(0).toString()]); '+ JSName +'.getWin().getSelection().removeAllRanges()}, 600);'); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 26, 2022 Share Posted April 26, 2022 Can you make a simple testcase to check? 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.