The selectTextblockEnd will move the cursor to the end of the current textblock if the block is a valid textblock.
selectTextblockEnd
editor.commands.selectTextblockEnd()