Hi!
I'm sorry if this isn't the correct place, but I just wanted to make a suggestion to the functions to move the cursor to the next cell or roll presented at https://ej2.syncfusion.com/documentation/document-editor/how-to/insert-text-or-image-in-table-programmatically. There it uses substring to select the right number in select API's hierarchal index to change, but I found safer to split the string into arrays. I say this because the table index for example can have two digits, like '0;10;0;0;1;0'.
Code:
function moveCursorToNextCell() {
// To get current selection start offset
let startOffset = documenteditorContainer.documentEditor.selection.startOffset;
// Increasing cell index to consider next cell
let startOffsetArray = startOffset.split(';');
startOffsetArray[3] = parseInt(startOffsetArray[3]) + 1;
// Changing start offset
startOffset = startOffsetArray.join(';');
// Navigating selection using select method
documenteditorContainer.documentEditor.selection.select(startOffset, startOffset);
}
function moveCursorToNextRow() {
// To get current selection start offset
let startOffset = documenteditorContainer.documentEditor.selection.startOffset;
// Increasing row index to consider next row
let startOffsetArray = startOffset.split(';');
startOffsetArray[2] = parseInt(startOffsetArray[2]) + 1;
// Going back to first cell
startOffsetArray[3] = 0;
// Changing start offset
startOffset = startOffsetArray.join(';');
// Navigating selection using select method
documenteditorContainer.documentEditor.selection.select(startOffset, startOffset);
}