Copy and Paste to clipboard

weniger als 1 Minuten zum lesen

copy-and-paste-to-clipboard-011

Well I had the requirement to copy the content of a textarea into the clipboard. There are two ways to do that:

  1. Build a dynamic action with custom Javascript code:
    Copy Text to Clipboard

    Code example - with dynamic action on Click and Execute Javascript Code:

    1
    2
    
    /* Select the text field */
    $('#P1_APEX_ITEM').select();
    
    1
    2
    
    /* Copy the text inside the text field */
    document.execCommand("copy");
    
  2. Use an APEX plugin:
    Copy to Clipboard (v1.1) - build by Dick Dral

  1. Icons made by Vitaly Gorbachev from www.flaticon.com is licensed by CC 3.0 BY