Action

Reset Tasks

Posted by agiletortoise, Last update 6 months ago - Unlisted

Loop over tasks found in editor, and reset any completed tasks to their initial state as defined by the syntax.

Steps

  • 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()) {
    	editor.resetTask(task)
    }
    

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.