Action

Paste as Plain Text

Posted by agiletortoise, Last update over 1 year ago

Paste contents of clipboard.

Steps

  • script

    // paste clipboard
    let text = app.getClipboard();
    let [st, len] = editor.getSelectedRange();
    
    editor.setSelectedText(text);
    editor.setSelectedRange(st+text.length, 0);
    
    

Options

  • After Success Default
    Notification Error
    Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.