Action

Paste+Preview

Posted by Brendan Weinstein, Last update 3 months ago

Paste contents of clipboard and preview in HTML

Steps

  • script

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

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.