Action

Removes everything except selected text

Posted by Christoph, Last update over 1 year ago

This action deletes everything from the currect draft except the selected text. If nothing is selected, the text remains unchanged.

Steps

  • script

    const selectedText = editor.getSelectedText();
    
    if (editor.getSelectedText().length === 0) {
    } else {
      draft.content = selectedText;
    }

Options

  • After Success Nothing
    Notification Error
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.