Action

NoXtraSpace

Posted by Courtney, Last update almost 2 years ago

Removes extra spaces, between words, while preserving line breaks.

Steps

  • script

    var sel = editor.getText();
    var res = sel.replace(/ {2,}/gm,' ');
    editor.setText(res)

Options

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