23. deleteWord
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 23. 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.

Prev | Up | Next
22. deleteSelectionOrJoinOrDeleteChar | Home | 24. editAttributes