Action

Trim and Copy

Posted by tinytamb, Last update 5 months 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.