25. deleteWord

Parameter syntax:

[ 'backwards' ]?

Deletes the word following the caret in a textual node (text, comment, processing-instruction). If the backwards option is used, this command deletes the word preceding the caret.

Note that this command also deletes the whitespace after or before the word if needed to. That is, it will attempt not to leave superfluous whitespace between words.