Move the caret to the paragraph that corresponds to ID.


Parameters:

NameTypeDescription
actionNameString'setCaretById' move the caret to the paragraph that corresponds to ID API
idStringparagraph id
offsetNumberparagraph offset


Example:

editor.execCommand('setCaretById', 'paragraph_id', 0);