Action

Add Drafts Dictation

Posted by @sylumer, Last update almost 3 years ago - Unlisted

Steps

  • script

    // define a template
    let template = `
    # [[time]]
    [[dictated-text]]
    `;
    
    // dictate
    var s = editor.dictate();
    if (s.length > 0) {
        draft.setTemplateTag("dictated-text", s);
        draft.content = draft.content + draft.processTemplate(template);
        draft.update();
    }

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.