Advance Tasks

Posted by agiletortoise, Last update 7 months ago - Unlisted

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

For tasks with only two states, this toggles the state.


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