Action

Posted by dtnewport , Last update over 6 years ago

Script key: Forward delete

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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.