selectAll command

Selects the whole document at once.

Use the selectAll command

// Select the whole document
editor.commands.selectAll()