Insert dictation

Posted by agiletortoise, Last update almost 6 years ago

Open dictation and insert the result at the current cursor position in the editor.


  • script

    // open dictation to insert in current draft
    // store selection
    const [st, len] = editor.getSelectedRange();
    // dictate
    var s = editor.dictate();
    if (s.length > 0) {
    	editor.setTextInRange(st, len, s);
    	editor.setSelectedRange(st + s.length, 0);


  • 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.