Drafts Action Directory

Posted by dtnewport , Last update 3 months ago

Script key: Forward delete

Install

Steps

  • script

    // Script keys run short Javascripts
    // For documentation and examples, visit:
    // http://help.agiletortoise.com
    
    var sel = editor.getSelectedRange();
    var start = sel[0];
    var length = sel[1];
    
    editor.setTextInRange(start, length == 0 ? 1 : length, "");
    
    editor.setSelectedRange(start, 0);

Options

  • After Success Nothing
    Notification Error
    Log Level Error

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.