Trim Whitespace

Posted by agiletortoise, Last update 30 days ago

Remove whitespace characters (spaces, tabs, line feeds) at beginning and end of selection.


  • script

    // trim whitespace from selection
    const text = editor.getSelectedText();


  • After Success Nothing
    Notification Error
    Log Level Error
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.