22. deleteChar

Parameter syntax:

[ 'backwards' ]?

Deletes character following the caret in the textual node (text, comment, processing-instruction). If there is no such character, moves caret to following textual node.

If the backwards option is used, deletes character preceding the caret in the textual node. If there is no such character, moves caret to preceding textual node.