New with Template & Tags

Posted by agiletortoise, Last update over 1 year ago

Create a new draft pre-filled with template content, and already assigned a “meetings” tag.

Steps

  • script

    /*
      Create new draft with template text and tag assigned.
    */
    
    // create template
    const template = `## Meeting Notes
    
    - Topic: 
    - Attendees:
    
    #### Notes
    
    `;
    
    // create the draft
    var d = Draft.create();
    d.content = template;
    d.addTag("meeting");
    d.update()
    
    // load in editor and focus for editing
    editor.load(d);
    editor.activate()

Options

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