Removes everything except selected text

Posted by Christoph, Last update about 1 year ago

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


  • script

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


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