Jump to content

dbmemo.SelectAll and dbmemo.CopyToClipboard


mierlp

Recommended Posts

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? 

Link to comment
Share on other sites

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);');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...