Finally i have solution with this code
editor.setTextCursorPosition(initialCursor?.targetBlock, initialCursor?.placement); editor.focus();