selectNodeBackward command

If the selection is empty and at the start of a textblock, selectNodeBackward will select the node before the current textblock if possible.

Use the selectNodeBackward command

editor.commands.selectNodeBackward()