Action

switch

Posted by sylumer, Last update over 3 years ago - Unlisted

Steps

  • script

    //This function should be called via an x-callback URL
    //drafts://x-callback-url/runAction?text={UUID},{NAV MARKER POS}&action={ACTION NAME}
    function switchByNavPos()
    {
    	let astrParams = draft.content.split(",");
    	editor.load(Draft.find(astrParams[0]));
    	editor.setSelectedRange(editor.navigationMarkers[astrParams[1] - 1].location,0);
    }
    
    switchByNavPos();

Options

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