Complete Tasks

Posted by agiletortoise, Last update 7 months ago - Unlisted

Loop over tasks found in the editor, and mark them completed tasks.


  • script

    // loop over tasks in the editor
    // resetting each to its initial state
    // note the loop runs from last to first
    // to avoid issues with tasks that change
    // the length of the content
    for (const task of editor.tasks.reverse()) {


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