Action

Trim and Copy

Posted by tinytamb, Last update almost 5 years ago

Steps

  • script

    // See online documentation for examples
    // https://docs.getdrafts.com/docs/actions/scripting
    
    
    var text = draft.content.trim();
    app.setClipboard(text);

Options

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